All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.data2viz.random.exponential.kt Maven / Gradle / Ivy

There is a newer version: 0.8.0-RC5
Show newest version
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