Back to Aurora Vision Library website

You are here: Start » Function Reference » All Functions » 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.

Header: STD.h
Namespace: avl
Module: FoundationLite

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
Input value inArray const Array<Type>& Input array
Input value inValues const Array<float>& Values defining the order
Input value inSortingOrder SortingOrder::Type
Output value outValue0 Conditional<float>&
Output value outValue1 Conditional<float>&
Output value outValue2 Conditional<float>&
Output value outValue3 Conditional<float>&
Output value outValue4 Conditional<float>&
Output value outValue5 Conditional<float>&
Output value outValue6 Conditional<float>&
Output value outValue7 Conditional<float>&
Output value outElement0 typename ToConditionalType<Type>::Type&
Output value outElement1 typename ToConditionalType<Type>::Type&
Output value outElement2 typename ToConditionalType<Type>::Type&
Output value outElement3 typename ToConditionalType<Type>::Type&
Output value outElement4 typename ToConditionalType<Type>::Type&
Output value outElement5 typename ToConditionalType<Type>::Type&
Output value outElement6 typename ToConditionalType<Type>::Type&
Output value outElement7 typename ToConditionalType<Type>::Type&

Errors

List of possible exceptions:

Error type Description
DomainError Inconsistent array sizes in GetSortedElements.

See Also

  • SortArray – Changes the order of the input array elements according to an ascending/descending sequence of the value array.
  • GetMaximumElement – Returns an array element that corresponds to the biggest value in the array of values.
  • GetMinimumElement – Returns an array element that corresponds to the smallest value in the array of values.