Companion

object Companion

Functions

Link copied to clipboard
fun percent(value: Double): Probability
fun percent(value: Int): Probability
fun percent(value: Long): Probability

Creates a Probability instance from the given value in percents.

Link copied to clipboard
fun unitRange(value: Double): Probability
fun unitRange(value: Int): Probability
fun unitRange(value: Long): Probability

Creates a Probability instance from the given value in the unit range.