Back to Adaptive Vision Library website
You are here: Start » Function Reference » Statistics » NthValue
NthValue
Computes n-th smallest value in an array (0-indexed). The array must be not empty.
Syntax
void avl::NthValue ( const atl::Array<atl::real>& inValues, int inN, atl::real& outNthValue )
Parameters
| Name | Type | Default | Description | |
|---|---|---|---|---|
![]() |
inValues | const Array<real>& | ||
![]() |
inN | int | ||
![]() |
outNthValue | real& |
Hints
- If the input array is not guaranteed to be non-empty, precede this filter with SkipEmptyArray.
Errors
| Error type | Description |
|---|---|
| DomainError | Selected N exceed the array index range in NthValue. |


