29 const string key =
"matrices." +
toString(cluster_type);
30 ContactProfile mean_nums;
32 for (
const auto& participant: pt_contacts.get_child(key)) {
33 double total_contacts = 0;
34 for (
const auto& contact: participant.second.get_child(
"contacts")) {
35 total_contacts += contact.second.get<
double>(
"rate");
37 (*this)[i++] = total_contacts;
string toString(ClusterType c)
Converts a ClusterType value to corresponding name.
Time Dependent Person DataType.
ContactProfile()
Need to keep the default constructor available.
ClusterType
Enumerates the cluster types.