diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.com> | 2014-04-19 23:50:46 +0200 |
---|---|---|
committer | Tomaž Vajngerl <tomaz.vajngerl@collabora.com> | 2014-04-24 22:51:12 +0200 |
commit | 15af2fddd639d3614fbdb5447b2dfe4f7c0d622d (patch) | |
tree | c31826d4e0813438c355e995264fa54bdf70e206 /sc/source | |
parent | a204a7ccbabf41642cd997f004d41820a960576b (diff) |
sc: t-test - actually use "Alpha" parameter in formulas
Change-Id: I30399ed526ae4dc345f6e8de69bc0806017e7da7
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/ui/StatisticsDialogs/TTestDialog.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/ui/StatisticsDialogs/TTestDialog.cxx b/sc/source/ui/StatisticsDialogs/TTestDialog.cxx index 181b45b3ea7d..c79ff5e99075 100644 --- a/sc/source/ui/StatisticsDialogs/TTestDialog.cxx +++ b/sc/source/ui/StatisticsDialogs/TTestDialog.cxx @@ -179,7 +179,7 @@ ScRange ScTTestDialog::ApplyOutput(ScDocShell* pDocShell) // T critical one-tail aOutput.writeString(SC_STRLOAD(RID_STATISTICS_DLGS, STR_TTEST_T_CRITICAL_ONE_TAIL)); aOutput.nextColumn(); - aTemplate.setTemplate("=TINV(2*0.05; %DEGREE_OF_FREEDOM%)"); + aTemplate.setTemplate("=TINV(2*%ALPHA%; %DEGREE_OF_FREEDOM%)"); aOutput.writeFormula(aTemplate.getTemplate()); aOutput.newLine(); @@ -193,7 +193,7 @@ ScRange ScTTestDialog::ApplyOutput(ScDocShell* pDocShell) // T critical two-tail aOutput.writeString(SC_STRLOAD(RID_STATISTICS_DLGS, STR_TTEST_T_CRITICAL_TWO_TAIL)); aOutput.nextColumn(); - aTemplate.setTemplate("=TINV(0.05; %DEGREE_OF_FREEDOM%)"); + aTemplate.setTemplate("=TINV(%ALPHA%; %DEGREE_OF_FREEDOM%)"); aOutput.writeFormula(aTemplate.getTemplate()); return ScRange(aOutput.mMinimumAddress, aOutput.mMaximumAddress); |