Boost logo

Boost-Commit :

From: pbristow_at_[hidden]
Date: 2007-06-26 09:36:30


Author: pbristow
Date: 2007-06-26 09:36:29 EDT (Tue, 26 Jun 2007)
New Revision: 7167
URL: http://svn.boost.org/trac/boost/changeset/7167

Log:
Changed 'accept' to 'not rejected'

Text files modified:
   sandbox/math_toolkit/libs/math/example/chi_square_std_dev_test.cpp | 23 ++++++++++++-----------
   sandbox/math_toolkit/libs/math/example/f_test.cpp | 24 +++++++++++++-----------
   sandbox/math_toolkit/libs/math/example/students_t_single_sample.cpp | 18 ++++++++++--------
   sandbox/math_toolkit/libs/math/example/students_t_two_samples.cpp | 23 ++++++++++++-----------
   4 files changed, 47 insertions(+), 41 deletions(-)

Modified: sandbox/math_toolkit/libs/math/example/chi_square_std_dev_test.cpp
==============================================================================
--- sandbox/math_toolkit/libs/math/example/chi_square_std_dev_test.cpp (original)
+++ sandbox/math_toolkit/libs/math/example/chi_square_std_dev_test.cpp 2007-06-26 09:36:29 EDT (Tue, 26 Jun 2007)
@@ -1,4 +1,5 @@
-// (C) Copyright John Maddock 2006
+// Copyright John Maddock 2006
+// Copyright Paul A. Bristow 2007
 // Use, modification and distribution are subject to the
 // Boost Software License, Version 1.0.
 // (See accompanying file LICENSE_1_0.txt
@@ -135,17 +136,17 @@
    cout << "Alternative Hypothesis Conclusion\n";
    cout << "Standard Deviation != " << setprecision(3) << fixed << D << " ";
    if((ucv2 < t_stat) || (lcv2 > t_stat))
- cout << "ACCEPTED\n";
+ cout << "NOT REJECTED\n";
    else
       cout << "REJECTED\n";
    cout << "Standard Deviation < " << setprecision(3) << fixed << D << " ";
    if(lcv > t_stat)
- cout << "ACCEPTED\n";
+ cout << "NOT REJECTED\n";
    else
       cout << "REJECTED\n";
    cout << "Standard Deviation > " << setprecision(3) << fixed << D << " ";
    if(ucv < t_stat)
- cout << "ACCEPTED\n";
+ cout << "NOT REJECTED\n";
    else
       cout << "REJECTED\n";
    cout << endl << endl;
@@ -218,10 +219,10 @@
    //
    // Run tests for silicon wafer fabrication data.
    // see http://www.itl.nist.gov/div898/handbook/prc/section2/prc23.htm
- // A supplier of 100 ohm.cm silicon wafers claims that his fabrication
- // process can produce wafers with sufficient consistency so that the
- // standard deviation of resistivity for the lot does not exceed
- // 10 ohm.cm. A sample of N = 10 wafers taken from the lot has a
+ // A supplier of 100 ohm.cm silicon wafers claims that his fabrication
+ // process can produce wafers with sufficient consistency so that the
+ // standard deviation of resistivity for the lot does not exceed
+ // 10 ohm.cm. A sample of N = 10 wafers taken from the lot has a
    // standard deviation of 13.97 ohm.cm
    //
    confidence_limits_on_std_deviation(13.97, 10);
@@ -275,8 +276,8 @@
 Results for Alternative Hypothesis and alpha = 0.0500
 
 Alternative Hypothesis Conclusion
-Standard Deviation != 0.100 ACCEPTED
-Standard Deviation < 0.100 ACCEPTED
+Standard Deviation != 0.100 NOT REJECTED
+Standard Deviation < 0.100 NOT REJECTED
 Standard Deviation > 0.100 REJECTED
 
 
@@ -344,7 +345,7 @@
 Alternative Hypothesis Conclusion
 Standard Deviation != 10.000 REJECTED
 Standard Deviation < 10.000 REJECTED
-Standard Deviation > 10.000 ACCEPTED
+Standard Deviation > 10.000 NOT REJECTED
 
 
 _____________________________________________________________

Modified: sandbox/math_toolkit/libs/math/example/f_test.cpp
==============================================================================
--- sandbox/math_toolkit/libs/math/example/f_test.cpp (original)
+++ sandbox/math_toolkit/libs/math/example/f_test.cpp 2007-06-26 09:36:29 EDT (Tue, 26 Jun 2007)
@@ -1,4 +1,6 @@
-// (C) Copyright John Maddock 2006
+// Copyright John Maddock 2006
+// Copyright Paul A. Bristow 2007
+
 // Use, modification and distribution are subject to the
 // Boost Software License, Version 1.0.
 // (See accompanying file LICENSE_1_0.txt
@@ -23,10 +25,10 @@
 {
    //
    // An F test applied to two sets of data.
- // We are testing the null hypothesis that the
- // standard deviation of the samples is equal, and
- // that any variation is down to chance. We can
- // also test the alternative hypothesis that any
+ // We are testing the null hypothesis that the
+ // standard deviation of the samples is equal, and
+ // that any variation is down to chance. We can
+ // also test the alternative hypothesis that any
    // difference is not down to chance.
    // See http://www.itl.nist.gov/div898/handbook/eda/section3/eda359.htm
    //
@@ -80,17 +82,17 @@
    cout << "Alternative Hypothesis Conclusion\n";
    cout << "Standard deviations are unequal (two sided test) ";
    if((ucv2 < F) || (lcv2 > F))
- cout << "ACCEPTED\n";
+ cout << "NOT REJECTED\n";
    else
       cout << "REJECTED\n";
    cout << "Standard deviation 1 is less than standard deviation 2 ";
    if(lcv > F)
- cout << "ACCEPTED\n";
+ cout << "NOT REJECTED\n";
    else
       cout << "REJECTED\n";
    cout << "Standard deviation 1 is greater than standard deviation 2 ";
    if(ucv < F)
- cout << "ACCEPTED\n";
+ cout << "NOT REJECTED\n";
    else
       cout << "REJECTED\n";
    cout << endl << endl;
@@ -101,8 +103,8 @@
    //
    // Run tests for ceramic strength data:
    // see http://www.itl.nist.gov/div898/handbook/eda/section4/eda42a1.htm
- // The data for this case study were collected by Said Jahanmir of the
- // NIST Ceramics Division in 1996 in connection with a NIST/industry
+ // The data for this case study were collected by Said Jahanmir of the
+ // NIST Ceramics Division in 1996 in connection with a NIST/industry
    // ceramics consortium for strength optimization of ceramic strength.
    //
    f_test(65.54909, 61.85425, 240, 240, 0.05);
@@ -176,6 +178,6 @@
 Alternative Hypothesis Conclusion
 Standard deviations are unequal (two sided test) REJECTED
 Standard deviation 1 is less than standard deviation 2 REJECTED
-Standard deviation 1 is greater than standard deviation 2 ACCEPTED
+Standard deviation 1 is greater than standard deviation 2 NOT REJECTED
 
 */
\ No newline at end of file

Modified: sandbox/math_toolkit/libs/math/example/students_t_single_sample.cpp
==============================================================================
--- sandbox/math_toolkit/libs/math/example/students_t_single_sample.cpp (original)
+++ sandbox/math_toolkit/libs/math/example/students_t_single_sample.cpp 2007-06-26 09:36:29 EDT (Tue, 26 Jun 2007)
@@ -1,4 +1,6 @@
-// (C) Copyright John Maddock 2006
+// Copyright John Maddock 2006
+// Copyright Paul A. Bristow 2007
+
 // Use, modification and distribution are subject to the
 // Boost Software License, Version 1.0.
 // (See accompanying file LICENSE_1_0.txt
@@ -143,17 +145,17 @@
    cout << "Alternative Hypothesis Conclusion\n";
    cout << "Mean != " << setprecision(3) << fixed << M << " ";
    if(q < alpha / 2)
- cout << "ACCEPTED\n";
+ cout << "NOT REJECTED\n";
    else
       cout << "REJECTED\n";
    cout << "Mean < " << setprecision(3) << fixed << M << " ";
    if(cdf(dist, t_stat) < alpha)
- cout << "ACCEPTED\n";
+ cout << "NOT REJECTED\n";
    else
       cout << "REJECTED\n";
    cout << "Mean > " << setprecision(3) << fixed << M << " ";
    if(cdf(complement(dist, t_stat)) < alpha)
- cout << "ACCEPTED\n";
+ cout << "NOT REJECTED\n";
    else
       cout << "REJECTED\n";
    cout << endl << endl;
@@ -290,9 +292,9 @@
 Probability that difference is due to chance = 0.000e+000
 Results for Alternative Hypothesis and alpha = 0.0500
 Alternative Hypothesis Conclusion
-Mean != 5.000 ACCEPTED
+Mean != 5.000 NOT REJECTED
 Mean < 5.000 REJECTED
-Mean > 5.000 ACCEPTED
+Mean > 5.000 NOT REJECTED
 _____________________________________________________________
 Estimated sample sizes required for various confidence levels
 _____________________________________________________________
@@ -358,8 +360,8 @@
 Probability that difference is due to chance = 9.343e-002
 Results for Alternative Hypothesis and alpha = 0.1000
 Alternative Hypothesis Conclusion
-Mean != 38.900 ACCEPTED
-Mean < 38.900 ACCEPTED
+Mean != 38.900 NOT REJECTED
+Mean < 38.900 NOT REJECTED
 Mean > 38.900 REJECTED
 _____________________________________________________________
 Estimated sample sizes required for various confidence levels

Modified: sandbox/math_toolkit/libs/math/example/students_t_two_samples.cpp
==============================================================================
--- sandbox/math_toolkit/libs/math/example/students_t_two_samples.cpp (original)
+++ sandbox/math_toolkit/libs/math/example/students_t_two_samples.cpp 2007-06-26 09:36:29 EDT (Tue, 26 Jun 2007)
@@ -1,4 +1,5 @@
-// (C) Copyright John Maddock 2006
+// Copyright John Maddock 2006.
+// Copyright Paul A. Bristow 2007.
 // Use, modification and distribution are subject to the
 // Boost Software License, Version 1.0.
 // (See accompanying file LICENSE_1_0.txt
@@ -81,17 +82,17 @@
    cout << "Alternative Hypothesis Conclusion\n";
    cout << "Sample 1 Mean != Sample 2 Mean " ;
    if(q < alpha / 2)
- cout << "ACCEPTED\n";
+ cout << "NOT REJECTED\n";
    else
       cout << "REJECTED\n";
    cout << "Sample 1 Mean < Sample 2 Mean ";
    if(cdf(dist, t_stat) < alpha)
- cout << "ACCEPTED\n";
+ cout << "NOT REJECTED\n";
    else
       cout << "REJECTED\n";
    cout << "Sample 1 Mean > Sample 2 Mean ";
    if(cdf(complement(dist, t_stat)) < alpha)
- cout << "ACCEPTED\n";
+ cout << "NOT REJECTED\n";
    else
       cout << "REJECTED\n";
    cout << endl << endl;
@@ -169,17 +170,17 @@
    cout << "Alternative Hypothesis Conclusion\n";
    cout << "Sample 1 Mean != Sample 2 Mean " ;
    if(q < alpha / 2)
- cout << "ACCEPTED\n";
+ cout << "NOT REJECTED\n";
    else
       cout << "REJECTED\n";
    cout << "Sample 1 Mean < Sample 2 Mean ";
    if(cdf(dist, t_stat) < alpha)
- cout << "ACCEPTED\n";
+ cout << "NOT REJECTED\n";
    else
       cout << "REJECTED\n";
    cout << "Sample 1 Mean > Sample 2 Mean ";
    if(cdf(complement(dist, t_stat)) < alpha)
- cout << "ACCEPTED\n";
+ cout << "NOT REJECTED\n";
    else
       cout << "REJECTED\n";
    cout << endl << endl;
@@ -221,8 +222,8 @@
 Probability that difference is due to chance = 7.855e-026
 Results for Alternative Hypothesis and alpha = 0.0500
 Alternative Hypothesis Conclusion
-Sample 1 Mean != Sample 2 Mean ACCEPTED
-Sample 1 Mean < Sample 2 Mean ACCEPTED
+Sample 1 Mean != Sample 2 Mean NOT REJECTED
+Sample 1 Mean < Sample 2 Mean NOT REJECTED
 Sample 1 Mean > Sample 2 Mean REJECTED
 _______________________________________________
 Student t test for two samples (equal variances)
@@ -239,8 +240,8 @@
 Probability that difference is due to chance = 2.637e-030
 Results for Alternative Hypothesis and alpha = 0.0500
 Alternative Hypothesis Conclusion
-Sample 1 Mean != Sample 2 Mean ACCEPTED
-Sample 1 Mean < Sample 2 Mean ACCEPTED
+Sample 1 Mean != Sample 2 Mean NOT REJECTED
+Sample 1 Mean < Sample 2 Mean NOT REJECTED
 Sample 1 Mean > Sample 2 Mean REJECTED
 _____________________________________________________________
 Estimated sample sizes required for various confidence levels


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk