Skip to content

Installation

ConvolvedDistributions is not yet registered in the Julia General Registry. Until the first release, install it from GitHub:

julia
using Pkg
Pkg.add(url = "https://github.com/EpiAware/ConvolvedDistributions.jl")

Once the package is registered this becomes:

julia
using Pkg; Pkg.add("ConvolvedDistributions")

Load it alongside Distributions.jl:

julia
using ConvolvedDistributions, Distributions

quantile for Convolved and Difference, and rand on their truncated wrappers, live in a package extension. Load Optimization.jl and OptimizationOptimJL.jl to activate it:

julia
using Optimization, OptimizationOptimJL

Everything else (cdf, pdf, logpdf, moments, sampling, truncated scoring) works without the extension.

The Getting started overview tours the constructors with worked examples.