parameter_space.h Source File
|
CPP API
|
ode_secirvvs/parameter_space.h
Go to the documentation of this file.
51 for (auto inf_state = Index<InfectionState>(0); inf_state < InfectionState::Count; ++inf_state) {
52 if (inf_state != InfectionState::SusceptibleNaive && //not sampled, fixed after sampling everything else
62 //subtract the overflow from SusceptibleImprovedImmunity, susceptibles will then be approximately zero.
72 model.populations.template set_difference_from_group_total<AgeGroup>({i, InfectionState::SusceptibleNaive},
92 model.parameters.template get<MaxRiskOfInfectionFromSymptomatic<FP>>()[AgeGroup(0)].draw_sample();
96 model.parameters.template get<ReducInfectedSymptomsPartialImmunity<FP>>()[AgeGroup(0)].draw_sample();
97 model.parameters.template get<ReducInfectedSymptomsImprovedImmunity<FP>>()[AgeGroup(0)].draw_sample();
98 model.parameters.template get<ReducInfectedSevereCriticalDeadPartialImmunity<FP>>()[AgeGroup(0)].draw_sample();
99 model.parameters.template get<ReducInfectedSevereCriticalDeadImprovedImmunity<FP>>()[AgeGroup(0)].draw_sample();
124 model.parameters.template get<ReducInfectedSevereCriticalDeadPartialImmunity<FP>>()[AgeGroup(0)];
126 model.parameters.template get<ReducInfectedSevereCriticalDeadImprovedImmunity<FP>>()[AgeGroup(0)];
168 Graph<Model<FP>, MobilityParameters<FP>> draw_sample(Graph<Model<FP>, MobilityParameters<FP>>& graph)
177 auto& shared_dynamic_npis = shared_params_model.parameters.template get<DynamicNPIsInfectedSymptoms<FP>>();
179 auto& shared_dynamic_npis_delay = shared_params_model.parameters.template get<DynamicNPIsImplementationDelay<FP>>();
192 auto local_holidays = node_model.parameters.template get<ContactPatterns<FP>>().get_school_holidays();
198 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
FP get_group_total(mio::Index< T > group_idx) const
get_group_total returns the total population of a group in one category
Definition: populations.h:136
size_t get_num_groups() const
Get the number of the age groups.
Definition: abm/parameters.h:783
Definition: ode_secirvvs/model.h:94
ad::internal::unary_intermediate< AD_TAPE_REAL, ad::internal::active_type< AD_TAPE_REAL, DATA_HANDLER_1 >, ad::operations::ad_fabs< AD_TAPE_REAL > > abs(const ad::internal::active_type< AD_TAPE_REAL, DATA_HANDLER_1 > &x1)
Definition: ad.hpp:1144
@ DeadImprovedImmunity
@ DeadPartialImmunity
@ SusceptibleNaive
@ DeadNaive
@ SusceptibleImprovedImmunity
void draw_sample(Model< FP > &model)
Draws a sample from Model parameter distributions and stores sample values as Parameters parameter va...
Definition: ode_secirvvs/parameter_space.h:149
void draw_sample_demographics(Model< FP > &model)
draws a sample from the specified distributions for all parameters related to the demographics,...
Definition: ode_secirvvs/parameter_space.h:40
void draw_sample_infection(Model< FP > &model)
draws a sample from the specified distributions for all parameters related to the infection.
Definition: ode_secirvvs/parameter_space.h:83
A collection of classes to simplify handling of matrix shapes in meta programming.
Definition: models/abm/analyze_result.h:30
void log_error(spdlog::string_view_t fmt, const Args &... args)
Definition: logging.h:100
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 as test and trace capacity is exceeded.
Definition: ode_secirvvs/parameters.h:356
Factor to reduce infection risk for persons with improved immunity.
Definition: ode_secirvvs/parameters.h:516
Factor to reduce infection risk for persons with partial immunity.
Definition: ode_secirvvs/parameters.h:500
Factor to reduce risk of hospitalization for persons with improved immunity.
Definition: ode_secirvvs/parameters.h:581
Factor to reduce risk of hospitalization for persons with partial immunity.
Definition: ode_secirvvs/parameters.h:565
Factor to reduce risk of developing symptoms for persons with improved immunity.
Definition: ode_secirvvs/parameters.h:548
Factor to reduce risk of developing symptoms for persons with partial immunity.
Definition: ode_secirvvs/parameters.h:532
Factor to reduce infectious time of persons with partial or improved immunity.
Definition: ode_secirvvs/parameters.h:597
the relative InfectedNoSymptoms infectability
Definition: ode_secirvvs/parameters.h:308
the risk of infection from symptomatic cases in the SECIR model
Definition: ode_secirvvs/parameters.h:340
the (mean) latent time in day unit
Definition: ode_secirvvs/parameters.h:208
the (mean) time in day unit for asymptomatic cases that are infected but have not yet developed sympt...
Definition: ode_secirvvs/parameters.h:225
Generated by