hi,
I'm having issues with the stat::max accumulator. Is it the correct way to it ? :
int main()
{
mln::accu::stat::max<double> mm;
mm.init();
mm.take(-0.02);
mm.take(-0.92);
mm.take(-0.03);
std::cout<<" max= "<<mm.to_result()<<std::endl;
}
In many situations (w/o init, w/o 'to_result() method in the ostream), I always get a
wrong value (2.22^-308, which seems to be min_val for positive double).
Is there a hidden (and undocumented AFAIK) requirement on the template parameter to be
"unsigned scalar" ?
regards
dav
----------------
David Coeurjolly - Directeur de recherche CNRS
CNRS, LIRIS-UMR 5205
Université de Lyon
Batiment Nautibus
43 boulevard du 11 novembre 1918, 69622 Villeurbanne cedex, France
Tel : (+33) [0]4.72.44.82.40 Fax : (+33) [0]4.72.43.15.36
http://liris.cnrs.fr/david.coeurjolly