Back to FabImage Studio website

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

GetSortedElements


Module: FoundationLite

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

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

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

Examples

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

Errors

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 Advanced Complexity Level.

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.