uncertain_matrix.h Source File
|
CPP API
|
uncertain_matrix.h
Go to the documentation of this file.
53 , m_school_holiday_damping(mio::UncertainValue<FP>(0.0), mio::DampingLevel(0), mio::DampingType(0),
145 const std::vector<std::pair<SimulationTime<FP>, SimulationTime<FP>>>& get_school_holidays() const
231 auto f = obj.expect_list("SchoolHolidays", Tag<std::pair<SimulationTime<FP>, SimulationTime<FP>>>{});
represents a collection of contact frequency matrices that whose sum is the total number of contacts.
Definition: contact_matrix.h:536
The UncertainContactMatrix class consists of a ContactMatrix with fixed baseline and uncertain Dampin...
Definition: uncertain_matrix.h:43
void draw_sample_dampings()
draw sample of all dampings.
Definition: uncertain_matrix.h:165
const DampingSampling< FP > & get_school_holiday_damping() const
Damping that is active during school holiday periods.
Definition: uncertain_matrix.h:126
static IOResult< UncertainContactMatrix< FP > > deserialize(IOContext &io)
deserialize an object of this class.
Definition: uncertain_matrix.h:225
ContactMatrixGroup< FP > make_matrix(bool accum=false)
create the contact matrix using the sampled dampings.
Definition: uncertain_matrix.h:178
UncertainContactMatrix< FP > & operator=(const ContactMatrixGroup< FP > &cont_freq)
Set an UncertainContactMatrix from a ContactMatrix, all distributions remain unchanged.
Definition: uncertain_matrix.h:82
std::vector< DampingSampling< FP > > & get_dampings()
Get a list of uncertain Dampings that are sampled and added to the contact matrix.
Definition: uncertain_matrix.h:115
ContactMatrixGroup< FP > const & get_cont_freq_mat() const
Returns the const ContactMatrix reference of the UncertainContactMatrix object.
Definition: uncertain_matrix.h:101
ContactMatrixGroup< FP > m_cont_freq
Definition: uncertain_matrix.h:256
std::vector< std::pair< SimulationTime< FP >, SimulationTime< FP > > > m_school_holidays
Definition: uncertain_matrix.h:259
const std::vector< DampingSampling< FP > > & get_dampings() const
Get a list of uncertain Dampings that are sampled and added to the contact matrix.
Definition: uncertain_matrix.h:111
DampingSampling< FP > m_school_holiday_damping
Definition: uncertain_matrix.h:258
void serialize(IOContext &io) const
serialize this.
Definition: uncertain_matrix.h:209
DampingSampling< FP > & get_school_holiday_damping()
Damping that is active during school holiday periods.
Definition: uncertain_matrix.h:130
UncertainContactMatrix(size_t num_matrices=1, Eigen::Index num_groups=1)
Definition: uncertain_matrix.h:45
ContactMatrixGroup< FP > & get_cont_freq_mat()
Returns the ContactMatrix reference of the UncertainContactMatrix object.
Definition: uncertain_matrix.h:92
const std::vector< std::pair< SimulationTime< FP >, SimulationTime< FP > > > & get_school_holidays() const
list of school holiday periods.
Definition: uncertain_matrix.h:145
std::vector< DampingSampling< FP > > m_dampings
Definition: uncertain_matrix.h:257
std::vector< std::pair< SimulationTime< FP >, SimulationTime< FP > > > & get_school_holidays()
list of school holiday periods.
Definition: uncertain_matrix.h:141
UncertainContactMatrix(const ContactMatrixGroup< FP > &cont_freq)
Definition: uncertain_matrix.h:50
ContactMatrixGroup< FP > draw_sample(bool accum=false)
Samples dampings and adds them to the contact matrix.
Definition: uncertain_matrix.h:156
The UncertainValue class consists of a scalar value and a Distribution object.
Definition: uncertain_value.h:46
A collection of classes to simplify handling of matrix shapes in meta programming.
Definition: models/abm/analyze_result.h:30
Range(std::pair< I, S > iterator_pair) -> Range< I, S >
Deduction guide to correctly deduce range type when constructed from a pair.
void apply_dampings(DampingExpression &damping_expression, const DampingSamplings &dampings, F make_matrix)
add sampled dampings to a damping expression.
Definition: damping_sampling.h:256
boost::outcome_v2::in_place_type_t< T > Tag
Type that is used for overload resolution.
Definition: io.h:407
details::ApplyResultT< F, T... > apply(IOContext &io, F f, const IOResult< T > &... rs)
Evaluate a function with zero or more unpacked IOResults as arguments.
Definition: io.h:481
auto make_contact_damping_matrix(V &&groups)
Make a contact damping matrix from dampings by group.
Definition: damping_sampling.h:282
@ IOF_OmitDistributions
Don't serialize distributions for types that contain both a specific value and a distribution from wh...
Definition: io.h:76
boost::outcome_v2::unchecked< T, IOStatus > IOResult
Value-or-error type for operations that return a value but can fail.
Definition: io.h:353
Generated by