在matlab我用
a=[1,4,6] b=[1,2,3] corr(a,b)
返回.9934.我尝试过,numpy.correlate但它会返回完全不同的东西.获得两个向量的相关性的最简单方法是什么?
numpy.correlate
python numpy
numpy ×1
python ×1