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