|
Boost-Commit : |
From: pbristow_at_[hidden]
Date: 2007-08-12 10:58:38
Author: pbristow
Date: 2007-08-12 10:58:34 EDT (Sun, 12 Aug 2007)
New Revision: 38610
URL: http://svn.boost.org/trac/boost/changeset/38610
Log:
Correction to comment, now has a typedef for binomial_distribution. No change to code.
Text files modified:
sandbox/math_toolkit/boost/math/distributions/binomial.hpp | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
Modified: sandbox/math_toolkit/boost/math/distributions/binomial.hpp
==============================================================================
--- sandbox/math_toolkit/boost/math/distributions/binomial.hpp (original)
+++ sandbox/math_toolkit/boost/math/distributions/binomial.hpp 2007-08-12 10:58:34 EDT (Sun, 12 Aug 2007)
@@ -271,10 +271,6 @@
}
- // typedef binomial_distribution<double> binomial;
- // is deliberately NOT included to avoid a name clash with function.
- //typedef binomial_distribution<double> binomial; // Reserved name of type double.
-
template <class RealType = double, class Policy = policies::policy<> >
class binomial_distribution
{
@@ -410,6 +406,9 @@
}; // template <class RealType, class Policy> class binomial_distribution
typedef binomial_distribution<> binomial;
+ // typedef binomial_distribution<double> binomial;
+ // IS now included since no longer a name clash with function binomial.
+ //typedef binomial_distribution<double> binomial; // Reserved name of type double.
template <class RealType, class Policy>
const std::pair<RealType, RealType> range(const binomial_distribution<RealType, Policy>& dist)
@@ -649,13 +648,13 @@
template <class RealType, class Policy>
inline RealType quantile(const binomial_distribution<RealType, Policy>& dist, const RealType& p)
- {
+ {
return binomial_detail::quantile_imp(dist, p, 1-p);
} // quantile
template <class RealType, class Policy>
RealType quantile(const complemented2_type<binomial_distribution<RealType, Policy>, RealType>& c)
- {
+ {
return binomial_detail::quantile_imp(c.dist, 1-c.param, c.param);
} // quantile
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