ReactiveBayes / ExponentialFamily.jl

ExponentialFamily.jl is a Julia package that extends the functionality of Distributions.jl by providing a collection of exponential family distributions and customized implementations.
https://reactivebayes.github.io/ExponentialFamily.jl/
MIT License
12 stars 2 forks source link

Add value support type to exponential family distribution #205

Open ismailsenoz opened 4 weeks ago

ismailsenoz commented 4 weeks ago

This PR adds Distributions.ValueSupport as a type to ExponentialFamilyDistribution. More specifically, ExponentialFamilyDistribution(::Type{T}, naturalparameters, conditioner, attributes) becomes ExponentialFamilyDistribution(::Type{Tvar}, ::Type{Tval}, naturalparameters, conditioner, attributes) where Tvar is either distribution type or variate type and Tval is either Continuous or Discrete.