PureLightCurve.py 文件源码

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

项目:PyCS 作者: COSMOGRAIL 项目源码 文件源码
def ComputePer(self,beta):
        """
        compute a periodigram for the data and compared it to a theorical line

        """

        datafft=np.fft.fft(self.data)
        per=np.abs(datafft)**2
        py.plot(per)
        x=np.array([100.*i+1 for i in range(self.length*self.res)])
        y=per[0]*(1./x)**(beta/2)
        py.loglog(x,y,c='red')
        py.show()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号