Distance to a MultivariateStatistics median

烈酒焚心 提交于 2019-12-10 23:38:47

问题


I have a population of objects (each of which is described by a sequence of real numbers), and I'd like to find the "distance" between a single test object and the median of the population.

I believe that I can use the MultivariateStatistics package to characterize my population, and then either SpatialMedian[] or SimplexMedian[] to find the "center." My goal is to find the distance between a test object and this median. I gather that a simple Euclidean distance would be incorrect, because I need to account for the ellipsoid's size and orientation (I believe, but I'm not certain, that this is the Mahalanobis distance). I don't see a function in the MultivariateStatistics package that lets me find such distances.

Is it possible to compute a distance from a test object to the median of the population, and if so, how?

来源:https://stackoverflow.com/questions/17434404/distance-to-a-multivariatestatistics-median

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