27 static bool SafePlus(
double& fVal1,
double fVal2);
28 static bool SafeMult(
double& fVal1,
double fVal2);
29 static bool SafeDiv(
double& fVal1,
double fVal2);
42 void update(
double fVal );
66 void update(
double fNewVal );
To calculate a single subtotal function.
ScFunctionData(ScSubTotalFunc eFn)
ScSubTotalFunc getFunc() const
sal_uInt64 & getCountRef()
void update(double fNewVal)
double getResult()
Check getError() after (!) obtaining the result.
static bool SafePlus(double &fVal1, double fVal2)
static bool SafeMult(double &fVal1, double fVal2)
static bool SafeDiv(double &fVal1, double fVal2)
Implements the Welford Online one-pass algorithm.
double getVariancePopulation() const
sal_uInt64 getCount() const
double getVarianceSample() const