[Libreoffice-commits] core.git: Branch 'libreoffice-4-3' - sc/source

Tomaž Vajngerl tomaz.vajngerl at collabora.com
Sat Nov 15 05:01:59 PST 2014


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

New commits:
commit 017aa78254397ade65fbd70b75bd4d70665dada5
Author: Tomaž Vajngerl <tomaz.vajngerl at collabora.com>
Date:   Sat Nov 15 09:08:49 2014 +0100

    fdo#86284 Make "Hypothesized Mean Difference" as parameter in t-test
    
    (cherry picked from commit 6b30907a926890f835c094a5afdf4c0e6d8a1d19)
    
    Change-Id: I268495b76a1b1ffb09cf21a0fd53d9f1f1bc4957

diff --git a/sc/source/ui/StatisticsDialogs/TTestDialog.cxx b/sc/source/ui/StatisticsDialogs/TTestDialog.cxx
index 144be46..f6f9846 100644
--- a/sc/source/ui/StatisticsDialogs/TTestDialog.cxx
+++ b/sc/source/ui/StatisticsDialogs/TTestDialog.cxx
@@ -84,12 +84,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();
@@ -131,13 +139,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();


More information about the Libreoffice-commits mailing list