def __init__(self,idx_self,idx_neighbours):
# print('Phasedetector and Combiner: sawtooth')
self.part = 0.95 # this needs to come from the constructor! add/change... 1params.txt content?!
self.highHarm = 2.0
self.h = lambda x: sawtooth(x,width=0.5) + self.part * sawtooth(self.highHarm*x + 0.5*np.pi,width=0.5) # set the type of coupling function, here a sawtooth since we consider digital PLLs (rectangular signals)
self.idx_self = idx_self # assigns the index
self.idx_neighbours = idx_neighbours # assigns the neighbors according to the coupling topology
# print('Osci ',idx_self,', my neighbors are:', idx_neighbours)
# y = 1 / n * sum h( x_delayed_neighbours - x_self )
评论列表
文章目录