summaryrefslogtreecommitdiff
path: root/boost/accumulators/statistics/weighted_mean.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/accumulators/statistics/weighted_mean.hpp')
-rw-r--r--boost/accumulators/statistics/weighted_mean.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/boost/accumulators/statistics/weighted_mean.hpp b/boost/accumulators/statistics/weighted_mean.hpp
index a80ef0984c..1ddce8dd57 100644
--- a/boost/accumulators/statistics/weighted_mean.hpp
+++ b/boost/accumulators/statistics/weighted_mean.hpp
@@ -97,6 +97,13 @@ namespace impl
return this->mean;
}
+ // make this accumulator serializeable
+ template<class Archive>
+ void serialize(Archive & ar, const unsigned int file_version)
+ {
+ ar & mean;
+ }
+
private:
result_type mean;
};