1 #include "../include/cal_date_list.h" 11 vector<CalDate> return_value(
_dates);
22 for (
auto& element :
_dates) {
24 string this_name = element.get_name();
25 return_value[this_name] = element.to_json();
33 ss <<
"name,bp,probability\n";
34 for (
auto& element :
_dates) {
35 ss << element.to_csv();
37 std::string return_value = ss.str();
44 vector<double> new_probs;
46 for(
auto it =
_dates.begin(); it !=
_dates.end(); ++it) {
48 if (it ==
_dates.begin()) {
53 std::transform ( probs.begin(),
61 CalDate sum_date =
CalDate(
"sum", probs, full_bp, 0, 0, full_bp, probs);
62 _dates.push_back(sum_date);
vector< CalDate > get_dates()
void push_back(CalDate date)
vector< double > get_full_probabilities()
Represents a calibrated date.
vector< int > get_full_bp()