parameters.h Source File
|
CPP API
|
sde_sirs/parameters.h
Go to the documentation of this file.
139 using ParametersBase = ParameterSet<TransmissionProbabilityOnContact<FP>, TimeInfected<FP>, ContactPatterns<FP>,
172 if (this->template get<Seasonality<FP>>() < 0.0 || this->template get<Seasonality<FP>>() > 0.5) {
180 "unreasonably small compartment stays lead to massively increased run time. Consider to cancel "
188 "unreasonably small compartment stays lead to massively increased run time. Consider to cancel "
196 log_warning("Constraint check: Parameter TransmissionProbabilityOnContact changed from {} to {} ",
213 if (this->template get<Seasonality<FP>>() < 0.0 || this->template get<Seasonality<FP>>() > 0.5) {
219 "unreasonably small compartment stays lead to massively increased run time. Consider to cancel "
226 "unreasonably small compartment stays lead to massively increased run time. Consider to cancel "
233 log_error("Constraint check: Parameter TransmissionProbabilityOnContact {} smaller {} or greater {}",
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
bool check_constraints() const
Checks whether all Parameters satisfy their corresponding constraints and logs an error if constraint...
Definition: sde_sirs/parameters.h:209
Parameters(ParametersBase< FP > &&base)
Definition: sde_sirs/parameters.h:241
bool apply_constraints()
Checks whether all Parameters satisfy their corresponding constraints and applies them,...
Definition: sde_sirs/parameters.h:167
static IOResult< Parameters > deserialize(IOContext &io)
deserialize an object of this class.
Definition: sde_sirs/parameters.h:252
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 a ContactMatrix
Definition: sde_sirs/parameters.h:89
static Type get_default()
Definition: sde_sirs/parameters.h:91
The start day in the SIRS model The start day defines in which season the simulation can be started I...
Definition: sde_sirs/parameters.h:108
probability of getting infected from a contact
Definition: sde_sirs/parameters.h:41
static std::string name()
Definition: sde_sirs/parameters.h:47
UncertainValue< FP > Type
Definition: sde_sirs/parameters.h:42
static Type get_default()
Definition: sde_sirs/parameters.h:43
Generated by