Class median

All Implemented Interfaces:
ArithFunction, Serializable

public class median extends DefaultArithFunction

Function: math.median(L): returns the median of values in L.

Examples:

  • math.median([1,3]): returns 2.
  • math.median([1,1,3]): returns 1.
  • math.median([1,1,3,a]): fail.
  • math.median([]): fail.
See Also: