Back to FabImage Library website
You are here: Start » Function Reference » Statistics » NthValue
Header: | STD.h |
---|---|
Namespace: | fil |
Computes n-th smallest value in an array (0-indexed). The array must be not empty.
Syntax
void fil::NthValue ( const ftl::Array<float>& inValues, int inN, float& outNthValue )
Parameters
Hints
- If the input array is not guaranteed to be non-empty, precede this filter with SkipEmptyArray.
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Selected N exceed the array index range in NthValue. |