io.data2viz.random.exponential.kt Maven / Gradle / Ivy
package io.data2viz.random
import kotlin.math.ln
fun randomExponential(lambda: Number = 1): () -> Double = {
-ln(1 - random()) / lambda.toDouble()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy