kotlin-numpy / org.jetbrains.numkt.statistics

Package org.jetbrains.numkt.statistics

Types

ModeCorr

enum class ModeCorr

Functions

amax

Return the maximum of an array or maximum along an axis.

fun <T : Number> amax(a: KtNDArray<T>): Tfun <T : Number> amax(a: KtNDArray<T>, axis: Int): KtNDArray<T>

amin

Return the minimum of an array or minimum along an axis.

fun <T : Number> amin(a: KtNDArray<T>): Tfun <T : Number> amin(a: KtNDArray<T>, axis: Int): KtNDArray<T>

average

Compute the weighted average along the specified axis.

fun <T : Number> average(a: KtNDArray<T>): Doublefun <T : Number> average(a: KtNDArray<T>, axis: Int): KtNDArray<Double>

corrcoef

Return Pearson product-moment correlation coefficients.

fun <T : Number, E : Number> corrcoef(x: KtNDArray<T>, y: KtNDArray<E>? = null, rowvar: Boolean = true): KtNDArray<Double>

correlate

Cross-correlation of two 1-dimensional sequences.

fun <T : Number, E : Number> correlate(a: KtNDArray<T>, v: KtNDArray<E>, mode: ModeCorr = ModeCorr.VALID): KtNDArray<Double>

cov

Estimate a covariance matrix, given data and weights.

fun <T : Number, E : Number> cov(m: KtNDArray<T>, y: KtNDArray<E>? = null, rowvar: Boolean = true, bias: Boolean = false, ddof: Int? = null, fweights: IntArray? = null, aweights: IntArray? = null): KtNDArray<Double>

mean

Compute the arithmetic mean along the specified axis.

fun <T : Number> mean(a: KtNDArray<T>): Doublefun <T : Number> mean(a: KtNDArray<T>, axis: Int): KtNDArray<Double>

median

Compute the median along the specified axis.

fun <T : Number> median(a: KtNDArray<T>): Doublefun <T : Number> median(a: KtNDArray<T>, axis: Int): KtNDArray<Double>

nanmax

Return the maximum of an array or maximum along an axis, ignoring any NaNs.

fun <T : Number> nanmax(a: KtNDArray<T>): Doublefun <T : Number> nanmax(a: KtNDArray<T>, axis: Int): KtNDArray<Double>

nanMean

Compute the arithmetic mean along the specified axis, ignoring NaNs.

fun <T : Number> nanMean(a: KtNDArray<T>): Doublefun <T : Number> nanMean(a: KtNDArray<T>, axis: Int): KtNDArray<Double>

nanMedian

Compute the median along the specified axis, while ignoring NaNs.

fun <T : Number> nanMedian(a: KtNDArray<T>): Doublefun <T : Number> nanMedian(a: KtNDArray<T>, axis: Int): KtNDArray<Double>

nanmin

Return minimum of an array or minimum along an axis, ignoring any NaNs.

fun <T : Number> nanmin(a: KtNDArray<T>): Doublefun <T : Number> nanmin(a: KtNDArray<T>, axis: Int): KtNDArray<Double>

nanPercentile

fun <T : Number> nanPercentile(a: KtNDArray<T>, q: Double): Double

Compute the qth percentile of the data along the specified axis, while ignoring nan values.

fun <T : Number> nanPercentile(a: KtNDArray<T>, q: Double, axis: Int): KtNDArray<Double>

nanQuantile

Compute the qth quantile of the data along the specified axis, while ignoring nan values.

fun <T : Number> nanQuantile(a: KtNDArray<T>, q: Double): Doublefun <T : Number> nanQuantile(a: KtNDArray<T>, q: Double, axis: Int): KtNDArray<Double>

nanStd

Compute the standard deviation along the specified axis, while ignoring NaNs.

fun <T : Number> nanStd(a: KtNDArray<T>, ddof: Int = 0): Doublefun <T : Number> nanStd(a: KtNDArray<T>, axis: Int, ddof: Int = 0): KtNDArray<Double>

nanVar

Compute the variance along the specified axis, while ignoring NaNs.

fun <T : Number> nanVar(a: KtNDArray<T>, ddof: Int = 0): Doublefun <T : Number> nanVar(a: KtNDArray<T>, axis: Int, ddof: Int = 0): KtNDArray<Double>

percentile

Compute the q-th percentile of the data along the specified axis.

fun <T : Number> percentile(a: KtNDArray<T>, q: Double): Doublefun <T : Number> percentile(a: KtNDArray<T>, q: Double, axis: Int): KtNDArray<Double>

ptp

Range of values (maximum - minimum) along an axis.

fun <T : Number> ptp(a: KtNDArray<T>, axis: Int): KtNDArray<T>

quantile

Compute the q-th quantile of the data along the specified axis.

fun <T : Number> quantile(a: KtNDArray<T>, q: Double): Doublefun <T : Number> quantile(a: KtNDArray<T>, q: Double, axis: Int): KtNDArray<Double>

std

Compute the standard deviation along the specified axis.

fun <T : Number> std(a: KtNDArray<T>, ddof: Int = 0): Doublefun <T : Number> std(a: KtNDArray<T>, axis: Int, ddof: Int = 0): KtNDArray<Double>

var

Compute the variance along the specified axis.

fun <T : Number> var(a: KtNDArray<T>, ddof: Int = 0): Doublefun <T : Number> var(a: KtNDArray<T>, axis: Int, ddof: Int = 0): KtNDArray<Double>