Dirac

The Dirac distribution with parameter $\mu$ is a distribution putting all probabiltiy mass on $\mu$. It is denoted by

\[\delta(x -\mu).\]

Types

Constructors

MarkovKernels.DiracMethod
Dirac{T}(D::Dirac{U,V})

Computes a Dirac distribution of eltype T from the Dirac distribution D if T and U are compatible. That is T and U must both be Real or both be Complex.

source
MarkovKernels.DiracMethod
Dirac{T}(D::Dirac{U,V})

Computes a Dirac distribution of eltype T from the Dirac distribution D if T and U are compatible. That is T and U must both be Real or both be Complex.

source

Basics

Statistics.meanMethod
mean(D::AbstractDirac)

Computes the mean vector of the Dirac distribution D.

source

Sampling

Base.randMethod
rand(RNG::AbstractRNG, D::AbstractDirac)

Computes a random vector distributed according to the Dirac distribution D using the random number generator RNG. Equivalent to mean(D).

source