parameter_space.h Source File
|
CPP API
|
ode_secirts/parameter_space.h
Go to the documentation of this file.
66 InfectionState::InfectedNoSymptomsPartialImmunity, InfectionState::InfectedNoSymptomsPartialImmunityConfirmed,
67 InfectionState::InfectedSymptomsPartialImmunity, InfectionState::InfectedSymptomsPartialImmunityConfirmed,
74 InfectionState::InfectedNoSymptomsImprovedImmunity, InfectionState::InfectedNoSymptomsImprovedImmunityConfirmed,
75 InfectionState::InfectedSymptomsImprovedImmunity, InfectionState::InfectedSymptomsImprovedImmunityConfirmed,
76 InfectionState::InfectedSevereImprovedImmunity, InfectionState::InfectedCriticalImprovedImmunity,
81 auto calculate_layer_total = [&model](const std::vector<InfectionState>& states, AgeGroup ageGroup) {
89 auto adjust_susceptible_population = [&model](AgeGroup i, FP diff, InfectionState susceptibleState) {
92 mio::log_warning("Negative population in State " + std::to_string(static_cast<size_t>(susceptibleState)) +
105 for (auto inf_state = Index<InfectionState>(0); inf_state < InfectionState::Count; ++inf_state) {
113 const FP diff_partial = group_partial_total - calculate_layer_total(partial_immunity_states, i);
114 const FP diff_improved = group_improved_total - calculate_layer_total(improved_immunity_states, i);
139 model.parameters.template get<MaxRiskOfInfectionFromSymptomatic<FP>>()[AgeGroup(0)].draw_sample();
145 model.parameters.template get<ReducInfectedSymptomsPartialImmunity<FP>>()[AgeGroup(0)].draw_sample();
146 model.parameters.template get<ReducInfectedSymptomsImprovedImmunity<FP>>()[AgeGroup(0)].draw_sample();
147 model.parameters.template get<ReducInfectedSevereCriticalDeadPartialImmunity<FP>>()[AgeGroup(0)].draw_sample();
148 model.parameters.template get<ReducInfectedSevereCriticalDeadImprovedImmunity<FP>>()[AgeGroup(0)].draw_sample();
173 model.parameters.template get<ReducInfectedSevereCriticalDeadPartialImmunity<FP>>()[AgeGroup(0)];
175 model.parameters.template get<ReducInfectedSevereCriticalDeadImprovedImmunity<FP>>()[AgeGroup(0)];
217 Graph<Model<FP>, MobilityParameters<FP>> draw_sample(Graph<Model<FP>, MobilityParameters<FP>>& graph)
226 auto& shared_dynamic_npis = shared_params_model.parameters.template get<DynamicNPIsInfectedSymptoms<FP>>();
239 auto local_holidays = node_model.parameters.template get<ContactPatterns<FP>>().get_school_holidays();
246 node_model.parameters.template get<ContactPatterns<FP>>().get_school_holidays() = local_holidays;
requires std::constructible_from< EdgePropertyT, Args... > void add_edge(size_t start_node_idx, size_t end_node_idx, Args &&... args)
add an edge to the graph.
Definition: graph.h:238
requires std::constructible_from< NodePropertyT, Args... > void add_node(int id, Args &&... args)
add a node to the graph.
Definition: graph.h:223
An Index with more than one template parameter combines several Index objects.
Definition: index.h:181
parameters that influence mobility.
Definition: metapopulation_mobility_instant.h:123
Definition: ode_secirts/model.h:102
void draw_sample(Model< FP > &model)
Draws a sample from model parameter distributions and stores sample values as parameters values (cf.
Definition: ode_secirts/parameter_space.h:200
void draw_sample_demographics(Model< FP > &model)
Draws a sample from the specified distributions for all parameters related to the demographics,...
Definition: ode_secirts/parameter_space.h:47
InfectionState
The InfectionState enum describes the possible categories for the infectious state of persons.
Definition: ode_secirts/infection_state.h:37
@ ExposedImprovedImmunity
@ InfectedNoSymptomsImprovedImmunityConfirmed
@ InfectedSeverePartialImmunity
@ InfectedNoSymptomsPartialImmunityConfirmed
@ DeadImprovedImmunity
@ InfectedNoSymptomsNaive
@ InfectedNoSymptomsImprovedImmunity
@ InfectedSevereImprovedImmunity
@ InfectedSymptomsPartialImmunityConfirmed
@ ExposedNaive
@ DeadPartialImmunity
@ ExposedPartialImmunity
@ InfectedSymptomsPartialImmunity
@ InfectedNoSymptomsNaiveConfirmed
@ InfectedSevereNaive
@ SusceptiblePartialImmunity
@ InfectedSymptomsImprovedImmunityConfirmed
@ InfectedCriticalPartialImmunity
@ SusceptibleNaive
@ InfectedNoSymptomsPartialImmunity
@ DeadNaive
@ TemporaryImmuneImprovedImmunity
@ SusceptibleImprovedImmunity
@ InfectedCriticalImprovedImmunity
@ InfectedCriticalNaive
@ InfectedSymptomsImprovedImmunity
@ InfectedSymptomsNaive
@ InfectedSymptomsNaiveConfirmed
@ TemporaryImmunePartialImmunity
Graph< Model< FP >, MobilityParameters< FP > > draw_sample(Graph< Model< FP >, MobilityParameters< FP >> &graph)
Draws samples for each model node in a graph.
Definition: ode_secirts/parameter_space.h:217
void draw_sample_infection(Model< FP > &model)
Draws a sample from the specified distributions for all parameters related to the infection.
Definition: ode_secirts/parameter_space.h:130
A collection of classes to simplify handling of matrix shapes in meta programming.
Definition: models/abm/analyze_result.h:30
void log_warning(spdlog::string_view_t fmt, const Args &... args)
Definition: logging.h:112
constexpr std::tuple_element< I, std::tuple< Index< CategoryTags >... > >::type & get(Index< CategoryTags... > &i) noexcept
Retrieves the Index (by reference) at the Ith position of a MultiIndex.
Definition: index.h:294
The AgeGroup struct is used as a dynamically sized tag for all age dependent categories.
Definition: age_group.h:32
bool apply_constraints()
Checks whether the model satisfies all constraints.
Definition: compartmental_model.h:131
Risk of infection from symptomatic cases increases if test and trace capacity is exceeded.
Definition: ode_secirts/parameters.h:428
Factor to reduce infection risk for persons with improved immunity.
Definition: ode_secirts/parameters.h:615
Factor to reduce infection risk for persons with partial immunity.
Definition: ode_secirts/parameters.h:598
Factor to reduce risk of hospitalization for persons with improved immunity.
Definition: ode_secirts/parameters.h:684
Factor to reduce risk of hospitalization for persons with partial immunity.
Definition: ode_secirts/parameters.h:667
Factor to reduce risk of developing symptoms for persons with improved immunity.
Definition: ode_secirts/parameters.h:649
Factor to reduce risk of developing symptoms for persons with partial immunity.
Definition: ode_secirts/parameters.h:632
Factor to reduce infectious time of persons with partial or improved immunity.
Definition: ode_secirts/parameters.h:701
The relative infectability from individuals located in the InfectedNoSymptoms infection state.
Definition: ode_secirts/parameters.h:377
The risk of infection from symptomatic cases in the SECIRTS model.
Definition: ode_secirts/parameters.h:411
Represents the mean latent time in days for different age groups.
Definition: ode_secirts/parameters.h:202
The (mean) time in day unit for asymptomatic cases that are infected but have not yet developed sympt...
Definition: ode_secirts/parameters.h:220
Generated by