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