bucky.model.parameters
¶
Submodule to handle the model parameterization and randomization.
Module Contents¶
Classes¶
Class holding all the model parameters defined in the par file, also used to reroll them for each MC run. |
Functions¶
|
Convert a 95% confidence interval to an equivilent stddev (assuming its normal). |
|
Calculate the effective reproductive number. |
|
Calculate the latent period. |
|
Calcuate the infectious period. |
|
Derive beta from Te. |
|
Derive gamma from Ti. |
|
Recursive update() for nested dicts. |
- class bucky.model.parameters.buckyParams(par_file=None)[source]¶
Class holding all the model parameters defined in the par file, also used to reroll them for each MC run.
- _generate_param_funcs(self)[source]¶
Generate all the partial functions to roll values of the params.
- static age_interp(x_bins_new, x_bins, y)[source]¶
Interpolate parameters define in age groups to a new set of age groups.
- calc_derived_params(self, params)[source]¶
Add the derived params that are calculated from the rerolled ones.
- generate_params(self)[source]¶
Generate a new set of params by rerolling, adding the derived params and rejecting invalid sets.
- reroll_params(self)[source]¶
Sample each parameter from distribution and calculate derived parameters.
- bucky.model.parameters.CI_to_std(CI)[source]¶
Convert a 95% confidence interval to an equivilent stddev (assuming its normal).