simulation.py 文件源码

python
阅读 31 收藏 0 点赞 0 评论 0

项目:delayCoupledDPLLnet 作者: cuichi23 项目源码 文件源码
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 )
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号