DiracDeltaDistribution

Models a Real Distribution backed by a Dirac Delta Function. This is similar to a Logistic probability function with a shape whose value tends to zero.

In practice, samples from this function return the provided value as a constant. The variance is zero, there is no randomness involved, and most of the useful information of a real distribution are actually lost. However, this utility can transform tools meant to work with a probability function in such a way that they work with a constant value (e.g., random walks with a constant step).

Constructors

Link copied to clipboard
constructor(randomGenerator: <Error class: unknown class>? = null, value: Double)

This constructor is meant for reflection compatibility only. randomGenerator is unused.

constructor(value: Double)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
open fun density(x: Double): Double
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun probability(x: Double): Double
Link copied to clipboard
open fun reseedRandomGenerator(seed: Long)
Link copied to clipboard
open fun sample(): Double
open fun sample(sampleSize: Int): DoubleArray