如何计算协方差矩阵 [英] How to compute a covariance matrix

查看:113
本文介绍了如何计算协方差矩阵的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这个问题似乎令人难以理解...我在将它发布到这里之前先问过google,发现与答案最接近的东西是这样的:

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.

在C#中正确计算协方差矩阵的最佳方法是什么?

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

有没有好的免费图书馆?

Any good free library?

谢谢!

推荐答案

我终于找到了 AlgLib库看起来很有希望.

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)

这篇关于如何计算协方差矩阵的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆