Boost logo

Boost-Commit :

From: pbristow_at_[hidden]
Date: 2007-08-25 05:03:02


Author: pbristow
Date: 2007-08-25 05:03:02 EDT (Sat, 25 Aug 2007)
New Revision: 38926
URL: http://svn.boost.org/trac/boost/changeset/38926

Log:
added test for synonyms location & scale for mean & sd
Text files modified:
   sandbox/math_toolkit/libs/math/test/test_normal.cpp | 5 +++++
   1 files changed, 5 insertions(+), 0 deletions(-)

Modified: sandbox/math_toolkit/libs/math/test/test_normal.cpp
==============================================================================
--- sandbox/math_toolkit/libs/math/test/test_normal.cpp (original)
+++ sandbox/math_toolkit/libs/math/test/test_normal.cpp 2007-08-25 05:03:02 EDT (Sat, 25 Aug 2007)
@@ -256,6 +256,11 @@
   boost::math::normal myn01; // Use default values.
   // Note NOT myn01() as the compiler will interpret as a function!
 
+ // Check the synonyms, provided to allow generic use of find_location and find_scale.
+ BOOST_CHECK_EQUAL(myn01.mean(), myn01.location());
+ BOOST_CHECK_EQUAL(myn01.standard_deviation(), myn01.scale());
+
+
          // Basic sanity-check spot values.
         // (Parameter value, arbitrarily zero, only communicates the floating point type).
   test_spots(0.0F); // Test float. OK at decdigits = 0 tolerance = 0.0001 %


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