|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r67087 - trunk/libs/math/test
From: pbristow_at_[hidden]
Date: 2010-12-07 13:00:56
Author: pbristow
Date: 2010-12-07 13:00:54 EST (Tue, 07 Dec 2010)
New Revision: 67087
URL: http://svn.boost.org/trac/boost/changeset/67087
Log:
Comment on max theoretical accuracy for median which uses Brent's algorithm.
Text files modified:
trunk/libs/math/test/test_beta_dist.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
Modified: trunk/libs/math/test/test_beta_dist.cpp
==============================================================================
--- trunk/libs/math/test/test_beta_dist.cpp (original)
+++ trunk/libs/math/test/test_beta_dist.cpp 2010-12-07 13:00:54 EST (Tue, 07 Dec 2010)
@@ -522,7 +522,7 @@
BOOST_CHECK_CLOSE_FRACTION(variance(mybeta22), 0.05, tol);
BOOST_CHECK_CLOSE_FRACTION(mean(mybeta22), 0.5, tol);
BOOST_CHECK_CLOSE_FRACTION(mode(mybeta22), 0.5, tol);
- BOOST_CHECK_CLOSE_FRACTION(median(mybeta22), 0.5, tol * 1e6);
+ BOOST_CHECK_CLOSE_FRACTION(median(mybeta22), 0.5, tol * 1e6); // theoretical maximum accuracy using Brent is sqrt(epsilon).
BOOST_CHECK_CLOSE_FRACTION(skewness(mybeta22), 0.0, tol);
BOOST_CHECK_CLOSE_FRACTION(kurtosis_excess(mybeta22), -144.0 / 168, tol);
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