Counters: Change return type of floating point operations
Previously the return type of e.g. AveragingCounter<int>::mean()
would
be fixed to int
. Change the default type to double
but also allow
the user to explicitly specify the return type via an additional
template parameter: mean<long>()
. The same change was done for all
methods involving floating point operations.
This fixes issue #50 (closed).