Back to Adaptive Vision Studio website

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


Module: FoundationLite

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

Name Type Description
inArray <T>Array Input array
inValues RealArray Values defining the order
inSortingOrder SortingOrder
outValue0 Real?
outValue1 Real?
outValue2 Real?
outValue3 Real?
outValue4 Real?
outValue5 Real?
outValue6 Real?
outValue7 Real?
outElement0 <T>?
outElement1 <T>?
outElement2 <T>?
outElement3 <T>?
outElement4 <T>?
outElement5 <T>?
outElement6 <T>?
outElement7 <T>?

The type of this filter is defined using the type variable T which represents any valid type. Read more.


Description of usage of this filter can be found in examples and tutorial: Inset Distances, Meter.


This filter can throw an exception to report error. Read how to deal with errors in Error Handling.

List of possible exceptions:

Error type Description
DomainError Inconsistent array sizes in GetSortedElements.

Complexity Level

This filter is available on Basic Complexity Level.

See Also

  • SortArray – Changes the order of the input array elements accordingly 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.