Skip to content

Getting started ​

This page is for new users. It gives a reading order and lists the tutorials and extensions.

ComposableRecurrences builds discrete-time models from two operators. A Recurrence computes each value of a series from its own past values, as infections arise from earlier infections. A Convolution computes each value from the past values of another series, as reported cases follow infections after a delay. The home page states one model built from both and lists the related packages.

Reading order ​

  1. Three towns, step by step builds the model of the home page one part at a time.

  2. The API overview defines each concept of the package and links the page that covers it.

  3. Time units covers data, parameters and delays in units other than the step of the model.

  4. The tutorials each build one model, and the FAQ lists model features with the page that builds each.

Tutorials ​

Each tutorial builds one model, states its equations before its code and can be read alone after Three towns, step by step.

The fitting tutorials are examples, not the only way to fit. The operators are ordinary differentiable Julia functions, so any fitting approach works with them. This includes conjugate updates, particle filters, optimisation, and MCMC with Turing.jl or a similar package. For Bayesian fitting we recommend Wren.jl.

Other sections ​

Extensions ​

An extension loads when its packages are loaded with ComposableRecurrences. No extension is needed to build or run a model.

LoadAddsPage
DistributionsDiscrete distributions as kernelsDistributions
CensoredDistributions, DistributionsContinuous distributions as kernelsCensoredDistributions
EnzymeThe rules of the operators for EnzymeEnzyme
MooncakeThe rules of the operators for MooncakeMooncake
ADTypes, Enzyme, EnzymeTestUtilstest_adjoint for EnzymeEnzymeTestUtils
ADTypes, DifferentiationInterfacegradient_routes, the gradient time of a recurrence by routeDifferentiationInterface
FFTWLag sums of a Convolution by fast Fourier transformFFTW
Functorsconvert_floats, such as to Float32Functors
LogExpFunctionsDerivatives of logistic, logit and log1pexpLogExpFunctions
KernelAbstractionsThe Parallel executorKernelAbstractions
KernelAbstractions and a GPU array packageCalls on GPU arraysGPUArrays
ReactantCompiled calls on traced arraysReactant
Reactant, KernelAbstractionsTraced loops over strata as one kernelReactant kernels

Getting help ​

Usage questions go to the Julia Discourse or the epinowcast community forum. Bug reports and feature requests go to GitHub issues.