How to compute a covariance matrix

痴心易碎 提交于 2019-12-10 14:24:31

问题


this question seems surprisingly obscure...I asked google before posting it here and the closest thing I found that resemble an answer is this : Covariance matrix computation

However I am not sure of the answer, from the comments.

What would be the best way to correctly compute a covariance matrix in C#?

Any good free library?

Thanks!


回答1:


I finally found the AlgLib library which looks promising.

It has a function to calculate covariance matrix :

public static void covm(double[,] x, out double[,] c)



回答2:


You can use EmguCV which C# wrapper for OpenCV library.Something like this

CvInvoke.cvCallcCovarMatrix();


来源:https://stackoverflow.com/questions/4410943/how-to-compute-a-covariance-matrix

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!