rNormalBoxMuller

fun rNormalBoxMuller(mean: Double = 0.0, variance: Double = 1.0, stream: RNStreamIfc = defaultRNStream()): Pair<Double, Double>

Generated a pair of normal random variates via the Box-Muller transform method The user can use destructuring to access the individual values

Return

the pair of random values

Parameters

mean

the mean of the normal

variance

the variance of the normal, must be greater than 0

stream

the random number stream


fun rNormalBoxMuller(mean: Double = 0.0, variance: Double = 1.0, streamNum: Int): Pair<Double, Double>

Generated a pair of normal random variates via the Box-Muller transform method The user can use destructuring to access the individual values

Return

the pair of random values

Parameters

mean

the mean of the normal

variance

the variance of the normal, must be greater than 0

streamNum

the random number stream number