23 pSfxBindings, pChildWindow, pParent, rViewData,
24 "modules/scalc/ui/ttestdialog.ui",
"TTestDialog")
39 return STR_TTEST_UNDO_NAME;
48 std::unique_ptr<DataRangeIterator> pVariable1Iterator;
54 std::unique_ptr<DataRangeIterator> pVariable2Iterator;
88 aTemplate.
setTemplate(
"=AVERAGE(%VARIABLE1_RANGE%)");
91 aTemplate.
setTemplate(
"=AVERAGE(%VARIABLE2_RANGE%)");
107 aTemplate.
setTemplate(
"=COUNT(%VARIABLE1_RANGE%)");
110 aTemplate.
setTemplate(
"=COUNT(%VARIABLE2_RANGE%)");
117 aTemplate.
setTemplate(
"=CORREL(%VARIABLE1_RANGE%;%VARIABLE2_RANGE%)");
124 aTemplate.
setTemplate(
"=AVERAGE(IF(ISODD(IF(ISNUMBER(%VARIABLE1_RANGE%); 1; 0) * IF(ISNUMBER(%VARIABLE2_RANGE%); 1; 0)); %VARIABLE1_RANGE% - %VARIABLE2_RANGE%; \"NA\"))");
132 aTemplate.
setTemplate(
"=VAR(IF(ISODD(IF(ISNUMBER(%VARIABLE1_RANGE%); 1; 0) * IF(ISNUMBER(%VARIABLE2_RANGE%); 1; 0)); %VARIABLE1_RANGE% - %VARIABLE2_RANGE%; \"NA\"))");
140 aTemplate.
setTemplate(
"=SUM(IF(ISNUMBER(%VARIABLE1_RANGE%); 1; 0) * IF(ISNUMBER(%VARIABLE2_RANGE%); 1; 0)) - 1");
148 aTemplate.
setTemplate(
"=(%OBSERVED_MEAN_DIFFERENCE% - %HYPOTHESIZED_MEAN_DIFFERENCE%) / (%VARIANCE_OF_DIFFERENCES% / ( %DEGREE_OF_FREEDOM% + 1)) ^ 0.5");
156 aTemplate.
setTemplate(
"=TDIST(ABS(%T_STAT%); %DEGREE_OF_FREEDOM%; 1)");
163 aTemplate.
setTemplate(
"=TINV(2*%ALPHA%; %DEGREE_OF_FREEDOM%)");
170 aTemplate.
setTemplate(
"=TDIST(ABS(%T_STAT%); %DEGREE_OF_FREEDOM%; 2)");
177 aTemplate.
setTemplate(
"=TINV(%ALPHA%; %DEGREE_OF_FREEDOM%)");
Reference< XExecutableDialog > m_xDialog
void writeMatrixFormula(const OUString &aFormula, SCCOL nCols=1, SCROW nRows=1)
void writeFormula(const OUString &aFormula)
void writeBoldString(const OUString &aString)
void writeValue(double aValue)
void writeString(const OUString &aString)
ScAddress current(SCCOL aRelativeCol=0, SCROW aRelativeRow=0, SCTAB aRelativeTab=0)
ScAddress mMaximumAddress
ScAddress mMinimumAddress
static sal_uInt16 GetChildWindowId()
bool DoClose(sal_uInt16 nId)
ScAddress::Details const mAddressDetails
virtual ScRange ApplyOutput(ScDocShell *pDocShell) override
ScTTestDialog(SfxBindings *pB, SfxChildWindow *pCW, weld::Window *pParent, ScViewData &rViewData)
virtual ~ScTTestDialog() override
virtual TranslateId GetUndoNameId() override
virtual void Close() override
OUString ScResId(TranslateId aId)
formula::FormulaGrammar::AddressConvention eConv