parameters.h Source File
|
CPP API
|
sde_sir/parameters.h
Go to the documentation of this file.
86 using ParametersBase = ParameterSet<TransmissionProbabilityOnContact<FP>, TimeInfected<FP>, ContactPatterns<FP>>;
120 "unreasonably small compartment stays lead to massively increased run time. Consider to cancel "
128 log_warning("Constraint check: Parameter TransmissionProbabilityOnContact changed from {} to {} ",
146 log_warning("Constraint check: Parameter TimeInfected {} smaller or equal {}. Please note that "
147 "unreasonably small compartment stays lead to massively increased run time. Consider to cancel "
154 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
static IOResult< Parameters > deserialize(IOContext &io)
deserialize an object of this class.
Definition: sde_sir/parameters.h:173
bool apply_constraints()
Checks whether all Parameters satisfy their corresponding constraints and applies them,...
Definition: sde_sir/parameters.h:113
bool check_constraints() const
Checks whether all Parameters satisfy their corresponding constraints and logs an error if constraint...
Definition: sde_sir/parameters.h:141
Parameters(ParametersBase< FP > &&base)
Definition: sde_sir/parameters.h:162
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_sir/parameters.h:73
probability of getting infected from a contact
Definition: sde_sir/parameters.h:41
static Type get_default()
Definition: sde_sir/parameters.h:43
static std::string name()
Definition: sde_sir/parameters.h:47
UncertainValue< FP > Type
Definition: sde_sir/parameters.h:42
Generated by