Currently, everyone is interested in protecting the privacy of users and their data. Being able to perform statistical analysis of data without actually storing data samples for longer than necessary is one solid step in the right direction.
The battery concept in boost library looks like the perfect fit for this to happen.
Accumulators Framework is an environment for performing incremental calculations. Using a structure follows the following pattern:
Users insert data into an object accumulator_set<>one sample at a time.
accumulator_set<> calculates the requested values ββin the most efficient method, resolving the dependencies between the requested calculations, possibly caching intermediate results.
There is only one big catch. I have no idea how to serialize a drive instance so that I can save it without requiring the sample data to be around the application launch.
How to create an instance and restore all the necessary parameters necessary for applying new samples and continue its incremental calculations ? I do not want to start from scratch, and I do not want the previous patterns to be displayed.
svena source
share