sc/source/ui/StatisticsDialogs/TTestDialog.cxx |   15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

New commits:
commit 6b30907a926890f835c094a5afdf4c0e6d8a1d19
Author: Tomaž Vajngerl <tomaz.vajng...@collabora.com>
Date:   Sat Nov 15 09:08:49 2014 +0100

    Make "Hypothesized Mean Difference" as parameter in t-test
    
    Change-Id: I268495b76a1b1ffb09cf21a0fd53d9f1f1bc4957

diff --git a/sc/source/ui/StatisticsDialogs/TTestDialog.cxx 
b/sc/source/ui/StatisticsDialogs/TTestDialog.cxx
index b8f7e1a..d61ba62 100644
--- a/sc/source/ui/StatisticsDialogs/TTestDialog.cxx
+++ b/sc/source/ui/StatisticsDialogs/TTestDialog.cxx
@@ -78,12 +78,20 @@ ScRange ScTTestDialog::ApplyOutput(ScDocShell* pDocShell)
     aOutput.writeBoldString(SC_STRLOAD(RID_STATISTICS_DLGS, 
STR_TTEST_UNDO_NAME));
     aOutput.newLine();
 
+    // Alpha
     aOutput.writeString("Alpha");
     aOutput.nextColumn();
     aOutput.writeValue(0.05);
     aTemplate.autoReplaceAddress("%ALPHA%", aOutput.current());
     aOutput.newLine();
 
+    // Hypothesized mean difference
+    aOutput.writeString(SC_STRLOAD(RID_STATISTICS_DLGS, 
STR_TTEST_HYPOTHESIZED_MEAN_DIFFERENCE));
+    aOutput.nextColumn();
+    aOutput.writeValue(0);
+    aTemplate.autoReplaceAddress("%HYPOTHESIZED_MEAN_DIFFERENCE%", 
aOutput.current());
+    aOutput.newLine();
+
     aOutput.nextColumn();
     aOutput.writeBoldString(SC_STRLOAD(RID_STATISTICS_DLGS, 
STR_VARIABLE_1_LABEL));
     aOutput.nextColumn();
@@ -125,13 +133,6 @@ ScRange ScTTestDialog::ApplyOutput(ScDocShell* pDocShell)
     aOutput.writeFormula(aTemplate.getTemplate());
     aOutput.newLine();
 
-    // Hypothesized mean difference
-    aOutput.writeString(SC_STRLOAD(RID_STATISTICS_DLGS, 
STR_TTEST_HYPOTHESIZED_MEAN_DIFFERENCE));
-    aOutput.nextColumn();
-    aOutput.writeValue(2);
-    aTemplate.autoReplaceAddress("%HYPOTHESIZED_MEAN_DIFFERENCE%", 
aOutput.current());
-    aOutput.newLine();
-
     // Observed mean difference
     aOutput.writeString(SC_STRLOAD(RID_STATISTICS_DLGS, 
STR_TTEST_OBSERVED_MEAN_DIFFERENCE));
     aOutput.nextColumn();
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to