Skip to content
Kevin Warne edited this page Sep 8, 2015 · 7 revisions

WikiMath

# d2b.MATH.mean(array[, value[, weight]])

Returns the mean of the given array. If the array is empty, returns undefined. An optional value accessor function may be specified to access the value of each array element. Also, an optional weight accessor function may be specified to access the weight of each array element. Values evaluated as NaN are ignored.

# d2b.MATH.median(array[, value[, weight]])

Returns the median of the given array. If the array is empty, returns undefined. An optional value accessor function may be specified to access the value of each array element. Also, an optional weight accessor function may be specified to access the weight of each array element. Values evaluated as NaN are ignored.

# d2b.MATH.mode(array[, value[, weight]])

Returns the mode of the given array. If the array is empty, returns undefined. An optional value accessor function may be specified to access the value of each array element. Also, an optional weight accessor function may be specified to access the weight of each array element. Values evaluated as NaN are ignored.

# d2b.MATH.midpoint(array[, value])

Returns the midpoint of the given array. If the array is empty, returns undefined. An optional value accessor function may be specified to access the value of each array element. Values evaluated as NaN are ignored.

# d2b.MATH.range(array[, value])

Returns the range of the given array. If the array is empty, returns undefined. An optional value accessor function may be specified to access the value of each array element. Values evaluated as NaN are ignored.

# d2b.MATH.toRadians(deg)

Returns the radians conversion of the given degrees value.

# d2b.MATH.toDegrees(rad)

Returns the degrees conversion of the given radians value.

Clone this wiki locally