bucky.model.parameters
Submodule to handle the model parameterization and randomization.
buckyParams
Class holding all the model parameters defined in the par file, also used to reroll them for each MC run.
CI_to_std(CI)
CI_to_std
Convert a 95% confidence interval to an equivilent stddev (assuming its normal).
calc_Reff(m, n, Tg, Te, r)
calc_Reff
Calculate the effective reproductive number.
calc_Te(Tg, Ts, n, f)
calc_Te
Calculate the latent period.
calc_Ti(Te, Tg, n)
calc_Ti
Calcuate the infectious period.
calc_beta(Te)
calc_beta
Derive beta from Te.
calc_gamma(Ti)
calc_gamma
Derive gamma from Ti.
recursive_dict_update(d, u)
recursive_dict_update
Recursive update() for nested dicts.
bucky.model.parameters.
_generate_param_funcs
Generate all the partial functions to roll values of the params.
age_interp
Interpolate parameters define in age groups to a new set of age groups.
calc_derived_params
Add the derived params that are calculated from the rerolled ones.
generate_params
Generate a new set of params by rerolling, adding the derived params and rejecting invalid sets.
read_yml
Read in the YAML par file.
reroll_params
Sample each parameter from distribution and calculate derived parameters.
update_params
Update parameter distributions and consts from nested dicts.
update_params_from_file
Update parameter distributions and consts from new yaml file.
bucky.model.optimize
bucky.model.rhs