Description
Returns the median of a set of values. This is useful for "divide and conquer" algorithms.
For determining whether a value is greater than or less than another, it uses the following criteria:
- Integers and scalars use the standard comparison.
- Vectors are compared based on length.
- Matrices are compared based on their determinants.
- Colors are compared based on their brightness with alpha.
Ports
Outputs
|
The median value. If the set has an even number of values, this is the average of the two middle values.
|