Computing covariance matrix of complex array with defined function is not matching while comparing with np.cov

前端 未结 0 1814
甜味超标
甜味超标 2020-12-01 01:22

I am trying to write a simple covariance matrix function in Python.

import numpy as np

def manual_covariance(x):
    mean = x.mean(axis=1)
    print(x.shape[         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题