LibreOffice Module sc (master) 1
|
To calculate a single subtotal function. More...
#include <subtotal.hxx>
Public Member Functions | |
ScFunctionData () | |
ScFunctionData (ScSubTotalFunc eFn) | |
void | update (double fNewVal) |
double | getResult () |
Check getError() after (!) obtaining the result. More... | |
bool | getError () const |
ScSubTotalFunc | getFunc () const |
void | setError () |
Private Member Functions | |
double & | getValueRef () |
sal_uInt64 & | getCountRef () |
Private Attributes | |
WelfordRunner | maWelford |
ScSubTotalFunc | meFunc |
bool | mbError |
To calculate a single subtotal function.
Definition at line 60 of file subtotal.hxx.
|
inline |
Definition at line 63 of file subtotal.hxx.
|
inline |
Definition at line 64 of file subtotal.hxx.
|
inlineprivate |
Definition at line 79 of file subtotal.hxx.
References maWelford, and WelfordRunner::mnCount.
Referenced by getResult(), and update().
|
inline |
Definition at line 69 of file subtotal.hxx.
References mbError.
Referenced by ScTable::UpdateSelectionFunction().
|
inline |
Definition at line 70 of file subtotal.hxx.
References meFunc.
Referenced by ScColumn::UpdateSelectionFunction().
double ScFunctionData::getResult | ( | ) |
Check getError() after (!) obtaining the result.
Definition at line 129 of file subtotal.cxx.
References WelfordRunner::getCount(), getCountRef(), getValueRef(), WelfordRunner::getVariancePopulation(), WelfordRunner::getVarianceSample(), maWelford, mbError, meFunc, SUBTOTAL_FUNC_AVE, SUBTOTAL_FUNC_CNT, SUBTOTAL_FUNC_CNT2, SUBTOTAL_FUNC_MAX, SUBTOTAL_FUNC_MIN, SUBTOTAL_FUNC_PROD, SUBTOTAL_FUNC_SELECTION_COUNT, SUBTOTAL_FUNC_STD, SUBTOTAL_FUNC_STDP, SUBTOTAL_FUNC_SUM, SUBTOTAL_FUNC_VAR, and SUBTOTAL_FUNC_VARP.
|
inlineprivate |
Definition at line 78 of file subtotal.hxx.
References maWelford, and WelfordRunner::mfMean.
Referenced by getResult(), and update().
|
inline |
Definition at line 71 of file subtotal.hxx.
References mbError.
void ScFunctionData::update | ( | double | fNewVal | ) |
Definition at line 66 of file subtotal.cxx.
References getCountRef(), getValueRef(), maWelford, mbError, meFunc, SubTotal::SafeMult(), SubTotal::SafePlus(), SUBTOTAL_FUNC_AVE, SUBTOTAL_FUNC_CNT, SUBTOTAL_FUNC_CNT2, SUBTOTAL_FUNC_MAX, SUBTOTAL_FUNC_MIN, SUBTOTAL_FUNC_PROD, SUBTOTAL_FUNC_SELECTION_COUNT, SUBTOTAL_FUNC_STD, SUBTOTAL_FUNC_STDP, SUBTOTAL_FUNC_SUM, SUBTOTAL_FUNC_VAR, SUBTOTAL_FUNC_VARP, and WelfordRunner::update().
Referenced by ScColumn::UpdateSelectionFunction().
|
private |
Definition at line 74 of file subtotal.hxx.
Referenced by getCountRef(), getResult(), getValueRef(), and update().
|
private |
Definition at line 76 of file subtotal.hxx.
Referenced by getError(), getResult(), setError(), and update().
|
private |
Definition at line 75 of file subtotal.hxx.
Referenced by getFunc(), getResult(), and update().