Boost logo

Boost-Commit :

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


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

Log:
Warning squashing and estimate to find
Text files modified:
   sandbox/math_toolkit/boost/math/distributions/beta.hpp | 24 ++++++++++++------------
   sandbox/math_toolkit/boost/math/distributions/binomial.hpp | 16 ++++++++--------
   sandbox/math_toolkit/boost/math/distributions/chi_squared.hpp | 6 +++---
   sandbox/math_toolkit/boost/math/distributions/negative_binomial.hpp | 8 ++++----
   sandbox/math_toolkit/boost/math/distributions/students_t.hpp | 6 +++---
   5 files changed, 30 insertions(+), 30 deletions(-)

Modified: sandbox/math_toolkit/boost/math/distributions/beta.hpp
==============================================================================
--- sandbox/math_toolkit/boost/math/distributions/beta.hpp (original)
+++ sandbox/math_toolkit/boost/math/distributions/beta.hpp 2007-09-21 13:38:38 EDT (Fri, 21 Sep 2007)
@@ -182,11 +182,11 @@
       // http://www.itl.nist.gov/div898/handbook/eda/section3/eda366h.htm
       // http://www.epi.ucdavis.edu/diagnostictests/betabuster.html
 
- static RealType estimate_alpha(
+ static RealType find_alpha(
         RealType mean, // Expected value of mean.
         RealType variance) // Expected value of variance.
       {
- static const char* function = "boost::math::beta_distribution<%1%>::estimate_alpha";
+ static const char* function = "boost::math::beta_distribution<%1%>::find_alpha";
         RealType result; // of error checks.
         if(false ==
           beta_detail::check_mean(
@@ -199,13 +199,13 @@
           return result;
         }
         return mean * (( (mean * (1 - mean)) / variance)- 1);
- } // RealType estimate_alpha
+ } // RealType find_alpha
 
- static RealType estimate_beta(
+ static RealType find_beta(
         RealType mean, // Expected value of mean.
         RealType variance) // Expected value of variance.
       {
- static const char* function = "boost::math::beta_distribution<%1%>::estimate_beta";
+ static const char* function = "boost::math::beta_distribution<%1%>::find_beta";
         RealType result; // of error checks.
         if(false ==
           beta_detail::check_mean(
@@ -218,17 +218,17 @@
           return result;
         }
         return (1 - mean) * (((mean * (1 - mean)) /variance)-1);
- } // RealType estimate_beta
+ } // RealType find_beta
 
       // Estimate alpha & beta from either alpha or beta, and x and probability.
       // Uses for these parameter estimators are unclear.
 
- static RealType estimate_alpha(
+ static RealType find_alpha(
         RealType beta, // from beta.
         RealType x, // x.
         RealType probability) // cdf
       {
- static const char* function = "boost::math::beta_distribution<%1%>::estimate_alpha";
+ static const char* function = "boost::math::beta_distribution<%1%>::find_alpha";
         RealType result; // of error checks.
         if(false ==
           beta_detail::check_prob(
@@ -244,15 +244,15 @@
           return result;
         }
         return ibeta_inva(beta, x, probability, Policy());
- } // RealType estimate_alpha(beta, a, probability)
+ } // RealType find_alpha(beta, a, probability)
 
- static RealType estimate_beta(
+ static RealType find_beta(
         // ibeta_invb(T b, T x, T p); (alpha, x, cdf,)
         RealType alpha, // alpha.
         RealType x, // probability x.
         RealType probability) // probability cdf.
       {
- static const char* function = "boost::math::beta_distribution<%1%>::estimate_beta";
+ static const char* function = "boost::math::beta_distribution<%1%>::find_beta";
         RealType result; // of error checks.
         if(false ==
           beta_detail::check_prob(
@@ -268,7 +268,7 @@
           return result;
         }
         return ibeta_invb(alpha, x, probability, Policy());
- } // RealType estimate_beta(alpha, x, probability)
+ } // RealType find_beta(alpha, x, probability)
 
     private:
       RealType m_alpha; // Two parameters of the beta distribution.

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-09-21 13:38:38 EDT (Fri, 21 Sep 2007)
@@ -309,13 +309,13 @@
       // these functions are used
       // to obtain confidence intervals for the success fraction.
       //
- static RealType estimate_lower_bound_on_p(
+ static RealType find_lower_bound_on_p(
          RealType trials,
          RealType successes,
          RealType probability,
          interval_type t = clopper_pearson_exact_interval)
       {
- static const char* function = "boost::math::binomial_distribution<%1%>::estimate_lower_bound_on_p";
+ static const char* function = "boost::math::binomial_distribution<%1%>::find_lower_bound_on_p";
         // Error checks:
         RealType result;
         if(false == binomial_detail::check_dist_and_k(
@@ -334,13 +334,13 @@
         return (t == clopper_pearson_exact_interval) ? ibeta_inv(successes, trials - successes + 1, probability, static_cast<RealType*>(0), Policy())
            : ibeta_inv(successes + 0.5f, trials - successes + 0.5f, probability, static_cast<RealType*>(0), Policy());
       }
- static RealType estimate_upper_bound_on_p(
+ static RealType find_upper_bound_on_p(
          RealType trials,
          RealType successes,
          RealType probability,
          interval_type t = clopper_pearson_exact_interval)
       {
- static const char* function = "boost::math::binomial_distribution<%1%>::estimate_upper_bound_on_p";
+ static const char* function = "boost::math::binomial_distribution<%1%>::find_upper_bound_on_p";
         // Error checks:
         RealType result;
         if(false == binomial_detail::check_dist_and_k(
@@ -362,12 +362,12 @@
       // or
       // "How many trials can I have to be P% sure of seeing fewer than k events?"
       //
- static RealType estimate_minimum_number_of_trials(
+ static RealType find_minimum_number_of_trials(
          RealType k, // number of events
          RealType p, // success fraction
          RealType alpha) // risk level
       {
- static const char* function = "boost::math::binomial_distribution<%1%>::estimate_minimum_number_of_trials";
+ static const char* function = "boost::math::binomial_distribution<%1%>::find_minimum_number_of_trials";
         // Error checks:
         RealType result;
         if(false == binomial_detail::check_dist_and_k(
@@ -381,12 +381,12 @@
         return result + k;
       }
 
- static RealType estimate_maximum_number_of_trials(
+ static RealType find_maximum_number_of_trials(
          RealType k, // number of events
          RealType p, // success fraction
          RealType alpha) // risk level
       {
- static const char* function = "boost::math::binomial_distribution<%1%>::estimate_maximum_number_of_trials";
+ static const char* function = "boost::math::binomial_distribution<%1%>::find_maximum_number_of_trials";
         // Error checks:
         RealType result;
         if(false == binomial_detail::check_dist_and_k(

Modified: sandbox/math_toolkit/boost/math/distributions/chi_squared.hpp
==============================================================================
--- sandbox/math_toolkit/boost/math/distributions/chi_squared.hpp (original)
+++ sandbox/math_toolkit/boost/math/distributions/chi_squared.hpp 2007-09-21 13:38:38 EDT (Fri, 21 Sep 2007)
@@ -39,7 +39,7 @@
    }
 
    // Parameter estimation:
- static RealType estimate_degrees_of_freedom(
+ static RealType find_degrees_of_freedom(
       RealType difference_from_variance,
       RealType alpha,
       RealType beta,
@@ -283,14 +283,14 @@
 } // namespace detail
 
 template <class RealType, class Policy>
-RealType chi_squared_distribution<RealType, Policy>::estimate_degrees_of_freedom(
+RealType chi_squared_distribution<RealType, Policy>::find_degrees_of_freedom(
    RealType difference_from_variance,
    RealType alpha,
    RealType beta,
    RealType variance,
    RealType hint)
 {
- static const char* function = "boost::math::chi_squared_distribution<%1%>::estimate_degrees_of_freedom(%1%,%1%,%1%,%1%,%1%)";
+ static const char* function = "boost::math::chi_squared_distribution<%1%>::find_degrees_of_freedom(%1%,%1%,%1%,%1%,%1%)";
    // Check for domain errors:
    RealType error_result;
    if(false == detail::check_probability(

Modified: sandbox/math_toolkit/boost/math/distributions/negative_binomial.hpp
==============================================================================
--- sandbox/math_toolkit/boost/math/distributions/negative_binomial.hpp (original)
+++ sandbox/math_toolkit/boost/math/distributions/negative_binomial.hpp 2007-09-21 13:38:38 EDT (Fri, 21 Sep 2007)
@@ -164,7 +164,7 @@
         RealType successes,
         RealType alpha) // alpha 0.05 equivalent to 95% for one-sided test.
       {
- static const char* function = "boost::math::negative_binomial<%1%>::estimate_lower_bound_on_p";
+ static const char* function = "boost::math::negative_binomial<%1%>::find_lower_bound_on_p";
         RealType result; // of error checks.
         RealType failures = trials - successes;
         if(false == detail::check_probability(function, alpha, &result, Policy())
@@ -189,7 +189,7 @@
         RealType successes,
         RealType alpha) // alpha 0.05 equivalent to 95% for one-sided test.
       {
- static const char* function = "boost::math::negative_binomial<%1%>::estimate_upper_bound_on_p";
+ static const char* function = "boost::math::negative_binomial<%1%>::find_upper_bound_on_p";
         RealType result; // of error checks.
         RealType failures = trials - successes;
         if(false == negative_binomial_detail::check_dist_and_k(
@@ -220,7 +220,7 @@
         RealType p, // success fraction 0 <= p <= 1.
         RealType alpha) // risk level threshold 0 <= alpha <= 1.
       {
- static const char* function = "boost::math::negative_binomial<%1%>::estimate_minimum_number_of_trials";
+ static const char* function = "boost::math::negative_binomial<%1%>::find_minimum_number_of_trials";
         // Error checks:
         RealType result;
         if(false == negative_binomial_detail::check_dist_and_k(
@@ -237,7 +237,7 @@
         RealType p, // success fraction 0 <= p <= 1.
         RealType alpha) // risk level threshold 0 <= alpha <= 1.
       {
- static const char* function = "boost::math::negative_binomial<%1%>::estimate_maximum_number_of_trials";
+ static const char* function = "boost::math::negative_binomial<%1%>::find_maximum_number_of_trials";
         // Error checks:
         RealType result;
         if(false == negative_binomial_detail::check_dist_and_k(

Modified: sandbox/math_toolkit/boost/math/distributions/students_t.hpp
==============================================================================
--- sandbox/math_toolkit/boost/math/distributions/students_t.hpp (original)
+++ sandbox/math_toolkit/boost/math/distributions/students_t.hpp 2007-09-21 13:38:38 EDT (Fri, 21 Sep 2007)
@@ -44,7 +44,7 @@
    }
 
    // Parameter estimation:
- static RealType estimate_degrees_of_freedom(
+ static RealType find_degrees_of_freedom(
       RealType difference_from_mean,
       RealType alpha,
       RealType beta,
@@ -252,14 +252,14 @@
 } // namespace detail
 
 template <class RealType, class Policy>
-RealType students_t_distribution<RealType, Policy>::estimate_degrees_of_freedom(
+RealType students_t_distribution<RealType, Policy>::find_degrees_of_freedom(
       RealType difference_from_mean,
       RealType alpha,
       RealType beta,
       RealType sd,
       RealType hint)
 {
- static const char* function = "boost::math::students_t_distribution<%1%>::estimate_degrees_of_freedom";
+ static const char* function = "boost::math::students_t_distribution<%1%>::find_degrees_of_freedom";
    //
    // Check for domain errors:
    //


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