필터 지우기
필터 지우기

Mahalanobis distance between two vectors?

조회 수: 2 (최근 30일)
K M Ibrahim Khalilullah
K M Ibrahim Khalilullah 2016년 9월 22일
댓글: K M Ibrahim Khalilullah 2016년 9월 22일
I want to calculate distance between two vector using Mahalanobis distance. Suppose, A=[2 3 4 5] and B=[4 5 6 7] How can I calculate Mahalanobis distance between the two vector? Is it possible like euclidean distance? Any one help me please. They make me confusion!!
  댓글 수: 2
Adam
Adam 2016년 9월 22일
You need a covariance matrix in order to calculate mahalanobis distance as it is a distance relative to a system where a unit distance is effectively the surface of a hypersphere of some orientation or other often represented by some statistical model.
K M Ibrahim Khalilullah
K M Ibrahim Khalilullah 2016년 9월 22일
Thank you very much. How can I get covariance matrix from the vector?

댓글을 달려면 로그인하십시오.

답변 (1개)

John D'Errico
John D'Errico 2016년 9월 22일
  댓글 수: 1
K M Ibrahim Khalilullah
K M Ibrahim Khalilullah 2016년 9월 22일
Thanks John D'Errico for your reply. In pdist like D = pdist(X) Only X. but how can I arrange A and B into X? Please explain..

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Statistics and Machine Learning Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by