mirror of
https://github.com/boostorg/math.git
synced 2026-01-27 07:02:08 +00:00
Corrected support minimum to 0 (was 1).
[SVN r62380]
This commit is contained in:
@@ -81,7 +81,7 @@ template <class RealType, class Policy>
|
||||
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 @@ inline const std::pair<RealType, RealType> support(const rayleigh_distribution<R
|
||||
{ // 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>
|
||||
|
||||
Reference in New Issue
Block a user