Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r81120 - trunk/boost/math/distributions
From: john_at_[hidden]
Date: 2012-10-31 13:04:47


Author: johnmaddock
Date: 2012-10-31 13:04:47 EDT (Wed, 31 Oct 2012)
New Revision: 81120
URL: http://svn.boost.org/trac/boost/changeset/81120

Log:
Minor fix for expression template types.
Text files modified:
   trunk/boost/math/distributions/non_central_t.hpp | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: trunk/boost/math/distributions/non_central_t.hpp
==============================================================================
--- trunk/boost/math/distributions/non_central_t.hpp (original)
+++ trunk/boost/math/distributions/non_central_t.hpp 2012-10-31 13:04:47 EDT (Wed, 31 Oct 2012)
@@ -335,7 +335,7 @@
             else if(v > 3)
             { // Use normal distribution to calculate guess.
                value_type mean = (v > 1 / policies::get_epsilon<T, Policy>()) ? delta : delta * sqrt(v / 2) * tgamma_delta_ratio((v - 1) * 0.5f, T(0.5f));
- value_type var = (v > 1 / policies::get_epsilon<T, Policy>()) ? 1 : (((delta * delta + 1) * v) / (v - 2) - mean * mean);
+ value_type var = (v > 1 / policies::get_epsilon<T, Policy>()) ? value_type(1) : (((delta * delta + 1) * v) / (v - 2) - mean * mean);
                if(p < q)
                   guess = quantile(normal_distribution<value_type, forwarding_policy>(mean, var), p);
                else


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