Py学习  »  问与答

Re:自相关函数自变量的求取?

django • 9 年前 • 5250 次点击  
#导包
from numpy as np
from statsmodels.tsa.stattools import acf         #导入自相关函数的包
#sin函数信号
step = 0.01
x = np.arange(-2*np.pi,4*np.pi,step)
y = np.sin(x)
#信号的自相关

acfy = acf(y,fft=True,unbiased=True,nlags=20000)

问题:

如果把上述acfy当作因变量,那么如何得到它的自变量?谢谢大神!!!

Python社区是高质量的Python/Django开发社区
本文地址:http://www.python88.com/topic/915
 
5250 次点击  
文章 [ 7 ]  |  最新文章 9 年前