Back to Aurora Vision Studio website

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

GetMinimumElement


Module: FoundationLite

Returns an array element that corresponds to the smallest value in the array of values.

Applications

Choosing one object from an array on the basis of some feature, e.g. the blob having the smallest convexity.
Name Type Description
Input value inArray <T>Array Elements from which element corresponding to smallest value will be chosen
Input value inValues RealArray Values defining the order
Output value outElement <T> Element from the array
Output value outValue Real Smallest value
Output value outIndex Integer Index of the smallest value

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

Hints

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 Empty input array in GetMinimumElement.
DomainError Inconsistent array sizes in GetMinimumElement.

Complexity Level

This filter is available on Advanced Complexity Level.

Filter Group

This filter is member of GetMinimumElement filter group.

See Also

  • GetMaximumElement – Returns an array element that corresponds to the biggest value in the array of values.