utils#

File for storing utilities and probability calculators needed to run FP model

Functions

set_seed

Reset the random seed -- complicated because of Numba

bt

A simple Bernoulli (binomial) trial

bc

A binomial count

rbt

A repeated Bernoulli (binomial) trial

mt

A multinomial trial

sample

Draw a sample from the distribution specified by the input.

match_ages

Find ages between age low and age_high

Exceptions

DuplicateNameException(obj)

Raised when either multiple instances of Module or State, or of any other type passed to ndict have duplicate names.