sample

abstract fun sample(vararg support: Double): Double

Returns a random sample from the distribution.

Return

A random sample from the distribution.

Throws

If some error occurred


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

Returns count random samples from the distribution.

Return

n random samples from the distribution.

Parameters

n

The number of samples to return.

Throws

If some error occurred