base_distribution
BaseDistribution
Bases: ABC
Abstract base class for distribution classes such as UniformDistribution and ExpoentialDistribution. This class should not be instantiated directly.
Source code in emod_api/utils/distributions/base_distribution.py
get_demographic_distribution_parameters()
abstractmethod
Yield the flag and relevant values necessary for setting a demographics distribution of the class type
Returns:
| Type | Description |
|---|---|
dict
|
a dict of the form: {'flag': X, 'value1': Y, 'value2': Z} |
Source code in emod_api/utils/distributions/base_distribution.py
set_intervention_distribution(intervention_object, prefix)
abstractmethod
Set the distribution parameters to the intervention object.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
intervention_object
|
ReadOnlyDict
|
|
required |
prefix
|
str
|
|
required |