Mediantrimmed: Difference between revisions

From Eigenvector Research Documentation Wiki
Jump to navigation Jump to search
imported>Scott
(Created page with " ===Purpose=== Trimmed median. ===Synopsis=== :mx = mediantrimmed(x,n,dim) ====Inputs==== * '''x''' = vector with M elements or MxN matrix of data. Higher order arrays ...")
 
imported>Scott
No edit summary
Line 1: Line 1:
===Purpose===
===Purpose===
Trimmed median.
Trimmed median.
===Synopsis===
===Synopsis===
 
:x = mediantrimmed(x,n,dim)
 
:mx = mediantrimmed(x,n,dim)
 
 
 


====Inputs====
====Inputs====
* '''x''' = vector with M elements or MxN matrix of data. Higher order arrays are also supported.
* '''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.
* '''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====
====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.
* '''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====
====Outputs====
* '''mx''' = trimmed median.
* '''mx''' = trimmed median.
===See Also===
===See Also===
[[auto]], [[meantrimmed]]
[[auto]], [[meantrimmed]]

Revision as of 17:59, 6 March 2012

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