MultivariateStatistics`
MultivariateStatistics`

SpatialMedian

As of Version 11.1, SpatialMedian is part of the built-in Wolfram Language kernel.

SpatialMedian[matrix]

gives the spatial median of the elements in matrix.

Details and Options

  • To use SpatialMedian, you first need to load the Multivariate Statistics Package using Needs["MultivariateStatistics`"].
  • SpatialMedian[matrix] gives the vector minimizing the sum of Euclidean distances from to the elements of matrix.

Examples

Basic Examples  (1)

In[1]:=
Click for copyable input

Spatial median for trivariate data:

In[2]:=
Click for copyable input
Out[2]=

See Also

Median  SimplexMedian  ConvexHullMedian  MultivariateMedianDeviation

Tutorials