Kaydet (Commit) 15af2fdd authored tarafından Tomaž Vajngerl's avatar Tomaž Vajngerl

sc: t-test - actually use "Alpha" parameter in formulas

Change-Id: I30399ed526ae4dc345f6e8de69bc0806017e7da7
üst a204a7cc
...@@ -179,7 +179,7 @@ ScRange ScTTestDialog::ApplyOutput(ScDocShell* pDocShell) ...@@ -179,7 +179,7 @@ ScRange ScTTestDialog::ApplyOutput(ScDocShell* pDocShell)
// T critical one-tail // T critical one-tail
aOutput.writeString(SC_STRLOAD(RID_STATISTICS_DLGS, STR_TTEST_T_CRITICAL_ONE_TAIL)); aOutput.writeString(SC_STRLOAD(RID_STATISTICS_DLGS, STR_TTEST_T_CRITICAL_ONE_TAIL));
aOutput.nextColumn(); aOutput.nextColumn();
aTemplate.setTemplate("=TINV(2*0.05; %DEGREE_OF_FREEDOM%)"); aTemplate.setTemplate("=TINV(2*%ALPHA%; %DEGREE_OF_FREEDOM%)");
aOutput.writeFormula(aTemplate.getTemplate()); aOutput.writeFormula(aTemplate.getTemplate());
aOutput.newLine(); aOutput.newLine();
...@@ -193,7 +193,7 @@ ScRange ScTTestDialog::ApplyOutput(ScDocShell* pDocShell) ...@@ -193,7 +193,7 @@ ScRange ScTTestDialog::ApplyOutput(ScDocShell* pDocShell)
// T critical two-tail // T critical two-tail
aOutput.writeString(SC_STRLOAD(RID_STATISTICS_DLGS, STR_TTEST_T_CRITICAL_TWO_TAIL)); aOutput.writeString(SC_STRLOAD(RID_STATISTICS_DLGS, STR_TTEST_T_CRITICAL_TWO_TAIL));
aOutput.nextColumn(); aOutput.nextColumn();
aTemplate.setTemplate("=TINV(0.05; %DEGREE_OF_FREEDOM%)"); aTemplate.setTemplate("=TINV(%ALPHA%; %DEGREE_OF_FREEDOM%)");
aOutput.writeFormula(aTemplate.getTemplate()); aOutput.writeFormula(aTemplate.getTemplate());
return ScRange(aOutput.mMinimumAddress, aOutput.mMaximumAddress); return ScRange(aOutput.mMinimumAddress, aOutput.mMaximumAddress);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment