21template<
typename T,
typename tRes>
26 Op_(
double InitVal, T aOp):
36using Op =
Op_<std::function<void(
double&,
double)>,
double>;
61 void operator()(
double& rAccum,
double fVal)
const;
This class provides LO with Kahan summation algorithm About this algorithm: https://en....
kOp kOpSumSquare(0.0, fkOpSumSquare)
std::vector< kOp > kOpSumAndSumSquare
void fkOpSumSquare(KahanSum &rAccum, double fVal)
void fkOpSum(KahanSum &rAccum, double fVal)
Op_(double InitVal, T aOp)
void operator()(tRes &rAccum, double fVal) const
static const double InitVal
void operator()(double &rAccum, double fVal) const
void operator()(KahanSum &rAccum, double fVal) const
static const double InitVal
void operator()(KahanSum &rAccum, double fVal) const
static const double InitVal