A new univariate distribution type should implement all of the following methods:
- Core constructors
MyDistribution{T}(args[...])
- We need to clarify whether constructors should handle input validation or not. There are use cases in which people want to avoid input validation.
params(d::MyDistribution{T})::Tuple
: A tuple of the distribution's parameters in our canonical order.minimum(d::MyDistribution{T})::T
: The lowest value in the support ofMyDistribution
.maximum(d::MyDistribution{T})::T
: The highest value in the support ofMyDistribution
.