BUILT-IN MATHEMATICA SYMBOL

# MeanShift

MeanShift[list, d]
replaces each element in list by the mean of the values of all elements that differ by less than d.

## Details and OptionsDetails and Options

• MeanShift returns a sorted list.
• MeanShift works with arbitrary expressions.
• The following option can be given:
•  DistanceFunction EuclideanDistance distance metric function MaxIterations 1 maximum number of iterations to perform
• The default setting is . Other typical settings include ManhattanDistance and ChessboardDistance.
• Possible settings for the DistanceFunction option are:
•  ManhattanDistance Manhattan or "city block" distance EuclideanDistance Euclidean distance SquaredEuclideanDistance squared Euclidean distance NormalizedSquaredEuclideanDistance normalized squared Euclidean distance CosineDistance angular cosine distance CorrelationDistance correlation coefficient distance

## ExamplesExamplesopen allclose all

### Basic Examples (2)Basic Examples (2)

Mean-shift of a list of integers:

 Out[1]=

Mean-shift of a list of vectors:

 Out[1]=