Back to Adaptive Vision Library website

You are here: Start » Function Reference » Array Statistics » GetSortedElements

GetSortedElements


This is Filter Equivalent. This function may be present in generated code, but should not be used in hand-written code.

Returns elements corresponding to 8 smallest/biggest values from the array of values.

Syntax

void avl::GetSortedElements
(
	const atl::Array<Type>& inArray,
	const atl::Array<float>& inValues,
	avl::SortingOrder::Type inSortingOrder,
	atl::Conditional<float>& outValue0,
	atl::Conditional<float>& outValue1,
	atl::Conditional<float>& outValue2,
	atl::Conditional<float>& outValue3,
	atl::Conditional<float>& outValue4,
	atl::Conditional<float>& outValue5,
	atl::Conditional<float>& outValue6,
	atl::Conditional<float>& outValue7,
	typename atl::ToConditionalType<Type>::Type& outElement0,
	typename atl::ToConditionalType<Type>::Type& outElement1,
	typename atl::ToConditionalType<Type>::Type& outElement2,
	typename atl::ToConditionalType<Type>::Type& outElement3,
	typename atl::ToConditionalType<Type>::Type& outElement4,
	typename atl::ToConditionalType<Type>::Type& outElement5,
	typename atl::ToConditionalType<Type>::Type& outElement6,
	typename atl::ToConditionalType<Type>::Type& outElement7
)

Parameters

Name Type Default Description
inArray const Array<Type>& Input array
inValues const Array<float>& Values defining the order
inSortingOrder SortingOrder::Type
outValue0 Conditional<float>&
outValue1 Conditional<float>&
outValue2 Conditional<float>&
outValue3 Conditional<float>&
outValue4 Conditional<float>&
outValue5 Conditional<float>&
outValue6 Conditional<float>&
outValue7 Conditional<float>&
outElement0 typename ToConditionalType<Type>::Type&
outElement1 typename ToConditionalType<Type>::Type&
outElement2 typename ToConditionalType<Type>::Type&
outElement3 typename ToConditionalType<Type>::Type&
outElement4 typename ToConditionalType<Type>::Type&
outElement5 typename ToConditionalType<Type>::Type&
outElement6 typename ToConditionalType<Type>::Type&
outElement7 typename ToConditionalType<Type>::Type&

Errors

Error type Description
DomainError Inconsistent array sizes in GetSortedElements.

See Also