Boost logo

Boost-Commit :

From: pbristow_at_[hidden]
Date: 2007-09-21 13:39:05


Author: pbristow
Date: 2007-09-21 13:39:04 EDT (Fri, 21 Sep 2007)
New Revision: 39452
URL: http://svn.boost.org/trac/boost/changeset/39452

Log:
Warning squashing and estimate to find
Text files modified:
   sandbox/math_toolkit/boost/math/special_functions/detail/ibeta_inverse.hpp | 2 +-
   sandbox/math_toolkit/boost/math/special_functions/detail/igamma_inverse.hpp | 10 +++++-----
   sandbox/math_toolkit/boost/math/special_functions/detail/t_distribution_inv.hpp | 2 +-
   3 files changed, 7 insertions(+), 7 deletions(-)

Modified: sandbox/math_toolkit/boost/math/special_functions/detail/ibeta_inverse.hpp
==============================================================================
--- sandbox/math_toolkit/boost/math/special_functions/detail/ibeta_inverse.hpp (original)
+++ sandbox/math_toolkit/boost/math/special_functions/detail/ibeta_inverse.hpp 2007-09-21 13:39:04 EDT (Fri, 21 Sep 2007)
@@ -501,7 +501,7 @@
    {
       //
       // We have a Student's T distribution:
- x = estimate_ibeta_inv_from_t_dist(a, p, q, &y, pol);
+ x = find_ibeta_inv_from_t_dist(a, p, q, &y, pol);
    }
    else if(a + b > 5)
    {

Modified: sandbox/math_toolkit/boost/math/special_functions/detail/igamma_inverse.hpp
==============================================================================
--- sandbox/math_toolkit/boost/math/special_functions/detail/igamma_inverse.hpp (original)
+++ sandbox/math_toolkit/boost/math/special_functions/detail/igamma_inverse.hpp 2007-09-21 13:39:04 EDT (Fri, 21 Sep 2007)
@@ -17,7 +17,7 @@
 namespace detail{
 
 template <class T>
-T estimate_inverse_s(T p, T q)
+T find_inverse_s(T p, T q)
 {
    //
    // Computation of the Incomplete Gamma Function Ratios and their Inverse
@@ -89,7 +89,7 @@
 }
 
 template <class T, class Policy>
-T estimate_inverse_gamma(T a, T p, T q, const Policy& pol)
+T find_inverse_gamma(T a, T p, T q, const Policy& pol)
 {
    //
    // In order to understand what's going on here, you will
@@ -180,7 +180,7 @@
    else
    {
       // DiDonato and Morris Eq 31:
- T s = estimate_inverse_s(p, q);
+ T s = find_inverse_s(p, q);
 
       T s_2 = s * s;
       T s_3 = s_2 * s;
@@ -353,7 +353,7 @@
       return tools::max_value<T>();
    if(p == 0)
       return 0;
- T guess = detail::estimate_inverse_gamma(a, p, 1 - p, pol);
+ T guess = detail::find_inverse_gamma(a, p, 1 - p, pol);
    T lower = tools::min_value<T>();
    if(guess <= lower)
       guess = tools::min_value<T>();
@@ -395,7 +395,7 @@
       return tools::max_value<T>();
    if(q == 1)
       return 0;
- T guess = detail::estimate_inverse_gamma(a, 1 - q, q, pol);
+ T guess = detail::find_inverse_gamma(a, 1 - q, q, pol);
    T lower = tools::min_value<T>();
    if(guess <= lower)
       guess = tools::min_value<T>();

Modified: sandbox/math_toolkit/boost/math/special_functions/detail/t_distribution_inv.hpp
==============================================================================
--- sandbox/math_toolkit/boost/math/special_functions/detail/t_distribution_inv.hpp (original)
+++ sandbox/math_toolkit/boost/math/special_functions/detail/t_distribution_inv.hpp 2007-09-21 13:39:04 EDT (Fri, 21 Sep 2007)
@@ -379,7 +379,7 @@
 }
 
 template <class T, class Policy>
-inline T estimate_ibeta_inv_from_t_dist(T a, T p, T q, T* py, const Policy& pol)
+inline T find_ibeta_inv_from_t_dist(T a, T p, T q, T* py, const Policy& pol)
 {
    T u = (p > q) ? 0.5f - q / 2 : p / 2;
    T v = 1 - u; // u < 0.5 so no cancellation error


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