summaryrefslogtreecommitdiff
path: root/boost/accumulators/statistics/weighted_p_square_cumul_dist.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/accumulators/statistics/weighted_p_square_cumul_dist.hpp')
-rw-r--r--boost/accumulators/statistics/weighted_p_square_cumul_dist.hpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/boost/accumulators/statistics/weighted_p_square_cumul_dist.hpp b/boost/accumulators/statistics/weighted_p_square_cumul_dist.hpp
index ce750ed1f5..f8a44d605b 100644
--- a/boost/accumulators/statistics/weighted_p_square_cumul_dist.hpp
+++ b/boost/accumulators/statistics/weighted_p_square_cumul_dist.hpp
@@ -221,6 +221,19 @@ namespace impl
return make_iterator_range(this->histogram);
}
+ // make this accumulator serializeable
+ // TODO split to save/load and check on parameters provided in ctor
+ template<class Archive>
+ void serialize(Archive & ar, const unsigned int file_version)
+ {
+ ar & num_cells;
+ ar & heights;
+ ar & actual_positions;
+ ar & desired_positions;
+ ar & histogram;
+ ar & is_dirty;
+ }
+
private:
std::size_t num_cells; // number of cells b
array_type heights; // q_i