summaryrefslogtreecommitdiff
path: root/boost/accumulators/statistics/weighted_moment.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/accumulators/statistics/weighted_moment.hpp')
-rw-r--r--boost/accumulators/statistics/weighted_moment.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/boost/accumulators/statistics/weighted_moment.hpp b/boost/accumulators/statistics/weighted_moment.hpp
index 011701c704..5b6129066a 100644
--- a/boost/accumulators/statistics/weighted_moment.hpp
+++ b/boost/accumulators/statistics/weighted_moment.hpp
@@ -60,6 +60,13 @@ namespace impl
return numeric::fdiv(this->sum, sum_of_weights(args));
}
+ // make this accumulator serializeable
+ template<class Archive>
+ void serialize(Archive & ar, const unsigned int file_version)
+ {
+ ar & sum;
+ }
+
private:
weighted_sample sum;
};