首页 > 其他 > 详细

matlab计算马氏平方距离

时间:2021-09-01 23:49:47      阅读:20      评论:0      收藏:0      [点我收藏+]

马氏距离计算一个点到一个参考分布的距离。马氏距离的优点是不受各个维度特征尺度的影响(尺度无关)。

 

d2 = mahal(Y, X)

d2 = mahal(Y,X) returns the squared Mahalanobis distance of each observation in Y to the reference samples in X.

返回Y中每个点相对于参考分布X的马氏平方距离。即Y_i与分布p(mu, cov)的距离,这里mu, cov通过X进行估计。

The Mahalanobis distance is a measure between a sample point and a distribution.

The Mahalanobis distance from a vector y to a distribution with mean μ and covariance Σ is

技术分享图片

This distance represents how far y is from the mean in number of standard deviations.

mahal returns the squared Mahalanobis distance d2 from an observation in Y to the reference samples in X. In the mahal function, μ and Σ are the sample mean and covariance of the reference samples, respectively.

技术分享图片

因此,计算一个向量中各点(或向量)到自身分布的马氏平方距离表示为:

d2 = mahal(X, X)

 

 

 

matlab计算马氏平方距离

原文:https://www.cnblogs.com/jiangkejie/p/15209045.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!