UniformDistribution

class UniformDistribution(range: ClosedFloatingPointRange<Double>) : Distribution1D<Double>

Functions

Link copied to clipboard
open override fun cumulative(arg: Double): Double

Cumulative distribution for ordered parameter (CDF)

Link copied to clipboard
open override fun probability(arg: Double): Double

A probability value for given argument arg. For continuous distributions returns PDF

Link copied to clipboard
open override fun sample(generator: RandomGenerator): Chain<Double>

Generates a chain of samples.

Properties

Link copied to clipboard
val range: ClosedFloatingPointRange<Double>

Sources

Link copied to clipboard