Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the difference between lazy mean and immediate mean in Boost accumulator?

Tags:

boost

my question is as in the title. By default it's lazy mean. It seems I got wrong result. However, before I switch to using immediate mean, I want to clarify the difference. Thanks.

like image 835
Wuwen Li Avatar asked Oct 09 '22 06:10

Wuwen Li


1 Answers

http://en.wikipedia.org/wiki/Lazy_evaluation

In the particular context of accumulators it means that in the lazy case the calculation is performed in the extractor - when you actually request the value of the mean (as opposed to being performed in the accumulator, i.e. when you record the data from which the mean is going to be calculated).

like image 192
eddi Avatar answered Oct 13 '22 10:10

eddi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!