Mediantrimmed

From Eigenvector Research Documentation Wiki
Revision as of 17:59, 6 March 2012 by imported>Scott
Jump to navigation Jump to search

Purpose

Trimmed median.

Synopsis

x = mediantrimmed(x,n,dim)

Inputs

  • x = vector with M elements or MxN matrix of data. Higher order arrays are also supported.
  • n = trimming factor. If (n>1) and even, (n) is the number of samples to exclude from the calculation. If (0<n<1), (n) is the fraction of samples to exclude from the calculation. If n>m(dim), then (n) is set to zero and the normal median is used.

Optional Inputs

  • dim = defines the dimension/mode along which the median is estimated (see MEDIAN). If dim is not defined the first non-singleton dimension is used.

Outputs

  • mx = trimmed median.

See Also

auto, meantrimmed