Start » Filter Reference » Basic » Statistics » Median
Module: | FoundationLite |
---|
Computes the median of an array of real numbers. The array must be not empty. Optional weights, when supplied, must be positive.
Name | Type | Description | |
---|---|---|---|
inValues | RealArray | ||
inWeights | RealArray* | ||
outMedian | Real |
Hints
- If the input array is not guaranteed to be non-empty, precede this filter with SkipEmptyArray.
Errors
This filter can throw an exception to report error. Read how to deal with errors in Error Handling.
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Empty array on input in Median. |
Complexity Level
This filter is available on Advanced Complexity Level.