Constructors

Link copied to clipboard
constructor(seed: Int)

Functions

Link copied to clipboard
abstract fun cdf(x: Double): IRange

Returns the cumulative distribution function (CDF) of the distribution.

Link copied to clipboard

Returns the entropy of the distribution.

Link copied to clipboard
abstract fun fisherInformation(n: Int = 0): DoubleArray

Returns the Fisher information of the distribution.

Link copied to clipboard
fun getSeed(): Int

Returns the seed used to generate the distribution.

Link copied to clipboard

Returns true if the distribution is continuous.

Link copied to clipboard

Returns true if the distribution is discrete.

Link copied to clipboard
abstract fun kurtosis(): Double

Returns the kurtosis of the distribution.

Link copied to clipboard
abstract fun mad(): Double

Returns the mean absolute deviation (MAD) of the distribution.

Link copied to clipboard
abstract fun mean(): Double

Returns the mean of the distribution.

Link copied to clipboard
abstract fun median(): IRange

Returns the median of the distribution.

Link copied to clipboard
abstract fun mgf(): (Int) -> Double

Returns the moment generating function (MGF) of the distribution.

Link copied to clipboard
abstract fun mode(): IRange

Returns the mode of the distribution.

Link copied to clipboard
abstract fun moment(n: Int): Double

Returns the n-th moment of the distribution.

Link copied to clipboard
abstract fun pdf(x: Double): IRange

Returns the probability density function (PDF) of the distribution.

Link copied to clipboard
abstract fun quantile(x: Double): IRange

Returns the quantile of the distribution.

Link copied to clipboard
abstract fun sample(vararg support: Double): Double

Returns a random sample from the distribution.

abstract fun sample(n: Int, vararg support: Double): DoubleArray

Returns count random samples from the distribution.

Link copied to clipboard
abstract fun skewness(): Double

Returns the skewness of the distribution.

Link copied to clipboard
abstract fun stddev(): Double

Returns the standard deviation of the distribution.

Link copied to clipboard
abstract fun variance(): Double

Returns the variance of the distribution.