parameters

fun parameters(theMean: Double, theVariance: Double)

Sets the parameters of a lognormal distribution to mean and variance. Note: these parameters are the actual mean and variance of the lognormal, not the underlying normal as in many other implementations.

Parameters

theMean

must be > 0

theVariance

must be > 0


open override fun parameters(params: DoubleArray)

Sets the parameters for the distribution mean = parameters0 and variance = parameters1

Parameters

params

an array of doubles representing the parameters for the distribution


open override fun parameters(): DoubleArray

Gets the parameters for the distribution

Return

Returns an array of the parameters for the distribution