epi-sim-0.7.0: A library for simulating epidemics as birth-death processes.
Copyright(c) 2021 Alexander E. Zarebski
LicenseMIT
MaintainerAlexander E. Zarebski <aezarebski@gmail.com>
Stabilityunstable
Portabilityghc
Safe HaskellNone
LanguageHaskell2010

Epidemic.Types.Parameter

Description

This module defines some types and functions for working with parameters of models.

Synopsis

Documentation

class Population p => ModelParameters a p where Source #

Class of types that can be considered parameterisations of a epidemic model.

Methods

rNaught :: p -> a -> AbsoluteTime -> Maybe Double Source #

The basic reproduction number.

NOTE that this is not the effective reproduction number the population is included in case there is structure other than immunity that needs to be accounted for.

eventRate :: p -> a -> AbsoluteTime -> Maybe Rate Source #

The total event rate at a particular point in time.

birthProb :: p -> a -> AbsoluteTime -> Maybe Probability Source #

The probability that an event will result in an infection.

eventWeights :: p -> a -> AbsoluteTime -> Maybe (Vector Double) Source #

The unnormalised distribution across the possible events.

Instances

Instances details
ModelParameters LogisticBDSDParameters LogisticBDSDPopulation Source # 
Instance details

Defined in Epidemic.Model.LogisticBDSD

ModelParameters InhomBDSCODRates InhomBDSCODPop Source # 
Instance details

Defined in Epidemic.Model.InhomogeneousBDSCOD

ModelParameters InhomBDSRates InhomBDSPop Source # 
Instance details

Defined in Epidemic.Model.InhomogeneousBDS

ModelParameters BDSCODParameters BDSCODPopulation Source # 
Instance details

Defined in Epidemic.Model.BDSCOD

type Rate = Double Source #

The rate at which an event occurs

type Probability = Double Source #

A probability