I want to use a boost::accumulator for defining a moving average of my custom class:
boost::accumulators::accumulator_set<MySample, boost::accumulators::stats<boost::accumulators::tag::rolling_mean> >
My problem is that my sample is a user defined class (vector implementation of another library).
I've seen in this post that's possible to define accumulators for std::vectors, but it does not specify which operator must be overloaded because it overloads them with boost/accumulators/numeric/functional/vector.hpp
.
If I want to use accumulator with an user-defined sample class, which operator I must overload and how?