From 5ce1cfc2525b06c0a9e38531813781de0281c96d Mon Sep 17 00:00:00 2001 From: DongHun Kwak Date: Thu, 5 Dec 2019 15:24:45 +0900 Subject: Imported Upstream version 1.71.0 --- boost/accumulators/statistics/weighted_p_square_quantile.hpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'boost/accumulators/statistics/weighted_p_square_quantile.hpp') 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 + 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 -- cgit v1.2.3