Back to Adaptive Vision Library website
You are here: Start » Function Reference » Statistics » Median
![](../../img/icon/Statistics.png)
Median
Computes the median of an array of real numbers. The array must be not empty.
Syntax
void avl::Median ( const atl::Array<float>& inValues, float& outMedian )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
![]() |
inValues | const Array<float>& | ||
![]() |
outMedian | float& |
Hints
- If the input array is not guaranteed to be non-empty, precede this filter with SkipEmptyArray.
Errors
Error type | Description |
---|---|
DomainError | Empty array on input in Median. |