diff options
Diffstat (limited to 'boost/accumulators/statistics/weighted_extended_p_square.hpp')
-rw-r--r-- | boost/accumulators/statistics/weighted_extended_p_square.hpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/boost/accumulators/statistics/weighted_extended_p_square.hpp b/boost/accumulators/statistics/weighted_extended_p_square.hpp index ac857e056d..f88e9b9ee8 100644 --- a/boost/accumulators/statistics/weighted_extended_p_square.hpp +++ b/boost/accumulators/statistics/weighted_extended_p_square.hpp @@ -28,6 +28,7 @@ #include <boost/accumulators/statistics/sum.hpp> #include <boost/accumulators/statistics/times2_iterator.hpp> #include <boost/accumulators/statistics/extended_p_square.hpp> +#include <boost/serialization/vector.hpp> namespace boost { namespace accumulators { @@ -251,6 +252,17 @@ namespace impl ); } + // make this accumulator serializeable + // TODO: do we need to split to load/save and verify that the parameters did not change? + template<class Archive> + void serialize(Archive & ar, const unsigned int file_version) + { + ar & probabilities; + ar & heights; + ar & actual_positions; + ar & desired_positions; + } + private: array_type probabilities; // the quantile probabilities array_type heights; // q_i |