Probability vector
Types
MarkovKernels.AbstractProbabilityVector — TypeAbstractProbabilityVector{ST}Abstract type for representing categorical distributions with values ST.
MarkovKernels.ProbabilityVector — TypeProbabilityVector{T,A}Type for representing categorical distributions with sample_eltype T.
Constructor
MarkovKernels.ProbabilityVector — MethodProbabilityVector(p::AbstractVector)Constructs a categorical distribution from the vector of probabilities p.
Methods
MarkovKernels.probability_vector — Methodprobability_vector(::AbstractProbabilityVector)Computes the vector of probabilities for each category.
MarkovKernels.entropy — Methodentropy(C::AbstractProbabilityVector)Computes the entropy of the categorical distribution C.
MarkovKernels.kldivergence — Methodkldivergence(C1::AbstractProbabilityVector, C2::AbstractProbabilityVector)Computes the Kullback-Leibler divergence between the categorical distributions C1 and C2.