parameters.h Source File
|
CPP API
|
lct_secir/parameters.h
Go to the documentation of this file.
150 mio::ContactMatrix<FP>(Eigen::MatrixX<FP>::Constant((Eigen::Index)size, (Eigen::Index)size, 10.));
294 ParameterSet<TimeExposed<FP>, TimeInfectedNoSymptoms<FP>, TimeInfectedSymptoms<FP>, TimeInfectedSevere<FP>,
328 if (this->template get<Seasonality<FP>>() < 0.0 || this->template get<Seasonality<FP>>() > 0.5) {
361 log_error("Constraint check: Parameter TransmissionProbabilityOnContact smaller {} or larger {}", 0, 1);
367 log_error("Constraint check: Parameter RelativeTransmissionNoSymptoms smaller {} or larger {}", 0, 1);
373 log_error("Constraint check: Parameter RiskOfInfectionFromSymptomatic smaller {} or larger {}", 0, 1);
379 log_error("Constraint check: Parameter RecoveredPerInfectedNoSymptoms smaller {} or larger {}", 0, 1);
385 log_error("Constraint check: Parameter SeverePerInfectedSymptoms smaller {} or larger {}", 0, 1);
represents a collection of contact frequency matrices that whose sum is the total number of contacts.
Definition: contact_matrix.h:536
represents time dependent contact frequencies between groups.
Definition: contact_matrix.h:505
const ParameterTagTraits< Tag >::Type & get() const
get value of a parameter
Definition: parameter_set.h:262
The UncertainContactMatrix class consists of a ContactMatrix with fixed baseline and uncertain Dampin...
Definition: uncertain_matrix.h:43
static IOResult< Parameters > deserialize(IOContext &io)
deserialize an object of this class.
Definition: lct_secir/parameters.h:420
size_t get_num_groups() const
Definition: lct_secir/parameters.h:317
Parameters(size_t num_groups)
Constructor.
Definition: lct_secir/parameters.h:311
Parameters(ParametersBase< FP > &&base)
Definition: lct_secir/parameters.h:406
bool check_constraints() const
Checks whether all parameters satisfy their corresponding constraints and throws errors,...
Definition: lct_secir/parameters.h:326
int size(Comm comm)
Return the size of the given communicator.
Definition: miompi.cpp:75
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
auto success()
Create an object that is implicitly convertible to a succesful IOResult<void>.
Definition: io.h:359
void log_error(spdlog::string_view_t fmt, const Args &... args)
Definition: logging.h:100
boost::outcome_v2::unchecked< T, IOStatus > IOResult
Value-or-error type for operations that return a value but can fail.
Definition: io.h:353
Definition: io.h:94
The contact patterns within the society are modelled using an UncertainContactMatrix.
Definition: lct_secir/parameters.h:143
UncertainContactMatrix< FP > Type
Definition: lct_secir/parameters.h:144
static Type get_default(size_t size)
Definition: lct_secir/parameters.h:146
The percentage of ICU patients per hospitalized patients for each group in the SECIR model.
Definition: lct_secir/parameters.h:227
Eigen::VectorX< UncertainValue< FP > > Type
Definition: lct_secir/parameters.h:228
static Type get_default(size_t size)
Definition: lct_secir/parameters.h:229
The percentage of dead patients per ICU patients for each group in the SECIR model.
Definition: lct_secir/parameters.h:243
Eigen::VectorX< UncertainValue< FP > > Type
Definition: lct_secir/parameters.h:244
static Type get_default(size_t size)
Definition: lct_secir/parameters.h:245
The percentage of asymptomatic cases for each group in the SECIR model.
Definition: lct_secir/parameters.h:195
static std::string name()
Definition: lct_secir/parameters.h:201
Eigen::VectorX< UncertainValue< FP > > Type
Definition: lct_secir/parameters.h:196
static Type get_default(size_t size)
Definition: lct_secir/parameters.h:197
The relative InfectedNoSymptoms infectability for each group.
Definition: lct_secir/parameters.h:163
static Type get_default(size_t size)
Definition: lct_secir/parameters.h:165
Eigen::VectorX< UncertainValue< FP > > Type
Definition: lct_secir/parameters.h:164
static std::string name()
Definition: lct_secir/parameters.h:169
The risk of infection from symptomatic cases for each group in the SECIR model.
Definition: lct_secir/parameters.h:179
static std::string name()
Definition: lct_secir/parameters.h:185
Eigen::VectorX< UncertainValue< FP > > Type
Definition: lct_secir/parameters.h:180
static Type get_default(size_t size)
Definition: lct_secir/parameters.h:181
The seasonality in the LCT-SECIR model.
Definition: lct_secir/parameters.h:280
static Type get_default(size_t)
Definition: lct_secir/parameters.h:282
The percentage of hospitalized patients per infected patients for each group in the SECIR model.
Definition: lct_secir/parameters.h:211
Eigen::VectorX< UncertainValue< FP > > Type
Definition: lct_secir/parameters.h:212
static Type get_default(size_t size)
Definition: lct_secir/parameters.h:213
static std::string name()
Definition: lct_secir/parameters.h:217
static Type get_default(size_t)
Definition: lct_secir/parameters.h:264
Average time spent in the Exposed compartment for each group.
Definition: lct_secir/parameters.h:44
static Type get_default(size_t size)
Definition: lct_secir/parameters.h:46
Eigen::VectorX< UncertainValue< FP > > Type
Definition: lct_secir/parameters.h:45
Average time treated by ICU before dead or recover for each group in the SECIR model in day unit.
Definition: lct_secir/parameters.h:111
Eigen::VectorX< UncertainValue< FP > > Type
Definition: lct_secir/parameters.h:112
static Type get_default(size_t size)
Definition: lct_secir/parameters.h:113
static std::string name()
Definition: lct_secir/parameters.h:117
Average time spent in the TimeInfectedNoSymptoms before developing symptoms or recover for each group...
Definition: lct_secir/parameters.h:61
Eigen::VectorX< UncertainValue< FP > > Type
Definition: lct_secir/parameters.h:62
static Type get_default(size_t size)
Definition: lct_secir/parameters.h:63
static std::string name()
Definition: lct_secir/parameters.h:67
Average time being in the Hospital before treated by ICU or recover for each group in the SECIR model...
Definition: lct_secir/parameters.h:95
static Type get_default(size_t size)
Definition: lct_secir/parameters.h:97
Eigen::VectorX< UncertainValue< FP > > Type
Definition: lct_secir/parameters.h:96
static std::string name()
Definition: lct_secir/parameters.h:101
Average time spent in the TimeInfectedSymptoms before going to hospital or recover for each group in ...
Definition: lct_secir/parameters.h:78
Eigen::VectorX< UncertainValue< FP > > Type
Definition: lct_secir/parameters.h:79
static Type get_default(size_t size)
Definition: lct_secir/parameters.h:80
static std::string name()
Definition: lct_secir/parameters.h:84
Probability of getting infected from a contact for each group.
Definition: lct_secir/parameters.h:127
Eigen::VectorX< UncertainValue< FP > > Type
Definition: lct_secir/parameters.h:128
static Type get_default(size_t size)
Definition: lct_secir/parameters.h:129
static std::string name()
Definition: lct_secir/parameters.h:133
Generated by