Exemplo n.º 1
0
class RfbfSom(OneToOneNode):
    def __init__(self, router, nodeDict):
        OneToOneNode.__init__(self, router, nodeDict)
        from backend.somfish import SOMFish
        self.som = SOMFish(self.node['_fixed'], k=10, map_size=tuple(self.node['_somsize']))
        self.som.send = make_send(self, incr=False)
    
    def compute(self, data):
        self.som.on_message(data)
Exemplo n.º 2
0
 def __init__(self, router, nodeDict):
     OneToOneNode.__init__(self, router, nodeDict)
     from backend.somfish import SOMFish
     self.som = SOMFish(self.node['_fixed'], k=10, map_size=tuple(self.node['_somsize']))
     self.som.send = make_send(self, incr=False)