Statistics

interface Statistics

Statistics methods interface.

Functions

Link copied to clipboard
abstract fun <T : Number, D : Dimension> average(a: MultiArray<T, D>, weights: MultiArray<T, D>? = null): Double

Returns the weighted average over the a elements and weights elements.

Link copied to clipboard
abstract fun <T : Number, D : Dimension> mean(a: MultiArray<T, D>): Double

Returns the arithmetic mean of the a elements.

abstract fun <T : Number, D : Dimension, O : Dimension> mean(a: MultiArray<T, D>, axis: Int): NDArray<Double, O>

Returns the arithmetic mean of the a elements along the given axis.

Link copied to clipboard
abstract fun <T : Number> meanD2(a: MultiArray<T, D2>, axis: Int): NDArray<Double, D1>

Returns the arithmetic mean of the two-dimensional ndarray a elements along the given axis.

Link copied to clipboard
abstract fun <T : Number> meanD3(a: MultiArray<T, D3>, axis: Int): NDArray<Double, D2>

Returns the arithmetic mean of the three-dimensional ndarray a elements along the given axis.

Link copied to clipboard
abstract fun <T : Number> meanD4(a: MultiArray<T, D4>, axis: Int): NDArray<Double, D3>

Returns the arithmetic mean of the four-dimensional ndarray a elements along the given axis.

Link copied to clipboard
abstract fun <T : Number> meanDN(a: MultiArray<T, DN>, axis: Int): NDArray<Double, D4>

Returns the arithmetic mean of the n-dimensional ndarray a elements along the given axis.

Link copied to clipboard
abstract fun <T : Number, D : Dimension> median(a: MultiArray<T, D>): Double?

Returns the median of the a elements.