summaryrefslogtreecommitdiff
path: root/boost/accumulators/statistics/weighted_p_square_quantile.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/accumulators/statistics/weighted_p_square_quantile.hpp')
-rw-r--r--boost/accumulators/statistics/weighted_p_square_quantile.hpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/boost/accumulators/statistics/weighted_p_square_quantile.hpp b/boost/accumulators/statistics/weighted_p_square_quantile.hpp
index 2ebc7b1845..fecd993911 100644
--- a/boost/accumulators/statistics/weighted_p_square_quantile.hpp
+++ b/boost/accumulators/statistics/weighted_p_square_quantile.hpp
@@ -208,6 +208,17 @@ namespace impl {
return this->heights[2];
}
+ // 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 & p;
+ ar & heights;
+ ar & actual_positions;
+ ar & desired_positions;
+ }
+
private:
float_type p; // the quantile probability p
array_type heights; // q_i