Meantrimmed

From Eigenvector Research Documentation Wiki
Jump to navigation Jump to search

Purpose

Trimmed mean.

Synopsis

mx = meantrimmed(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 mean is used.

Optional Inputs

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

Outputs

  • mx = trimmed mean.

See Also

auto, mediantrimmed