Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r62380 - trunk/boost/math/distributions
From: pbristow_at_[hidden]
Date: 2010-06-02 10:49:23


Author: pbristow
Date: 2010-06-02 10:49:22 EDT (Wed, 02 Jun 2010)
New Revision: 62380
URL: http://svn.boost.org/trac/boost/changeset/62380

Log:
Corrected support minimum to 0 (was 1).
Text files modified:
   trunk/boost/math/distributions/rayleigh.hpp | 4 ++--
   1 files changed, 2 insertions(+), 2 deletions(-)

Modified: trunk/boost/math/distributions/rayleigh.hpp
==============================================================================
--- trunk/boost/math/distributions/rayleigh.hpp (original)
+++ trunk/boost/math/distributions/rayleigh.hpp 2010-06-02 10:49:22 EDT (Wed, 02 Jun 2010)
@@ -81,7 +81,7 @@
 inline const std::pair<RealType, RealType> range(const rayleigh_distribution<RealType, Policy>& /*dist*/)
 { // Range of permissible values for random variable x.
    using boost::math::tools::max_value;
- return std::pair<RealType, RealType>(static_cast<RealType>(1), max_value<RealType>());
+ return std::pair<RealType, RealType>(static_cast<RealType>(0), max_value<RealType>());
 }
 
 template <class RealType, class Policy>
@@ -89,7 +89,7 @@
 { // Range of supported values for random variable x.
    // This is range where cdf rises from 0 to 1, and outside it, the pdf is zero.
    using boost::math::tools::max_value;
- return std::pair<RealType, RealType>((1), max_value<RealType>());
+ return std::pair<RealType, RealType>((0), max_value<RealType>());
 }
 
 template <class RealType, class Policy>


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