rLaplace

fun rLaplace(location: Double, scale: Double, streamNum: Int): Double

Generates according to a Laplace(location, scale)

Return

the random value

Parameters

location

mean or location parameter

scale

scale parameter, must be greater than 0

streamNum

the stream number from the stream provider to use


fun rLaplace(location: Double, scale: Double, rng: RNStreamIfc = defaultRNStream()): Double

Generates according to a Laplace(location, scale)

Return

the random value

Parameters

location

mean or location parameter

scale

scale parameter, must be greater than 0

rng

the RNStreamIfc, must not be null