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<float>& inValues,
	int inN,
	float& outNthValue
)

Parameters

Name Type Default Description
inValues const Array<float>&
inN int
outNthValue float&

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.