Mathematic Stats

Mathematic Stats

avg

func avg(arg1 interface{}, args ...interface{}) interface{}
Returns the average value of the specified numbers.

Aliases

  • average

max

func max(x ...interface{}) interface{}
Returns the larger of x or y.
Special cases are:
    max(x, +Inf) = max(+Inf, x) = +Inf
    max(x, NaN) = max(NaN, x) = NaN
    max(+0, ±0) = max(±0, +0) = +0
    max(-0, -0) = -0

Aliases

  • maximum
  • biggest

min

func min(x ...interface{}) interface{}
Returns the smaller of x or y.
Special cases are:
    min(x, -Inf) = min(-Inf, x) = -Inf
    min(x, NaN) = min(NaN, x) = NaN
    min(-0, ±0) = min(±0, -0) = -0

Aliases

  • minimum
  • smallest