DiracDeltaDistribution

class DiracDeltaDistribution(val value: Double) : RealDistribution, Serializable

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: RandomGenerator? = 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
open override fun cumulativeProbability(x: Double): Double
open override fun cumulativeProbability(x0: Double, x1: Double): Double
Link copied to clipboard
open override fun density(x: Double): Double
Link copied to clipboard
open override fun getNumericalMean(): Double
Link copied to clipboard
open override fun getNumericalVariance(): Double
Link copied to clipboard
open override fun getSupportLowerBound(): Double
Link copied to clipboard
open override fun getSupportUpperBound(): Double
Link copied to clipboard
Link copied to clipboard
open override fun isSupportConnected(): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun probability(x: Double): Double
Link copied to clipboard
open override fun reseedRandomGenerator(seed: Long)
Link copied to clipboard
open override fun sample(): Double
open override fun sample(sampleSize: Int): DoubleArray