Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r66957 - trunk/boost/math/distributions
From: pbristow_at_[hidden]
Date: 2010-12-01 13:48:12


Author: pbristow
Date: 2010-12-01 13:48:12 EST (Wed, 01 Dec 2010)
New Revision: 66957
URL: http://svn.boost.org/trac/boost/changeset/66957

Log:
Enabled mean, variance ... for dotnetexample (TODO return NaN?)
Text files modified:
   trunk/boost/math/distributions/non_central_beta.hpp | 18 +++++++++---------
   1 files changed, 9 insertions(+), 9 deletions(-)

Modified: trunk/boost/math/distributions/non_central_beta.hpp
==============================================================================
--- trunk/boost/math/distributions/non_central_beta.hpp (original)
+++ trunk/boost/math/distributions/non_central_beta.hpp 2010-12-01 13:48:12 EST (Wed, 01 Dec 2010)
@@ -693,7 +693,7 @@
             function);
       }
 
-#if 0
+#if 1 // re-enable for C# app
       //
       // We don't have the necessary information to implement
       // these at present. These are just disabled for now,
@@ -701,16 +701,16 @@
       // later:
       //
       template <class RealType, class Policy>
- inline RealType mean(const non_central_beta_distribution<RealType, Policy>& dist)
+ inline RealType mean(const non_central_beta_distribution<RealType, Policy>& /* dist */)
       {
          // TODO
- return 0;
+ return 0; // NaN?
       } // mean
 
       template <class RealType, class Policy>
- inline RealType variance(const non_central_beta_distribution<RealType, Policy>& dist)
+ inline RealType variance(const non_central_beta_distribution<RealType, Policy>& /* dist */)
       { // variance.
- const char* function = "boost::math::non_central_beta_distribution<%1%>::variance()";
+ //const char* function = "boost::math::non_central_beta_distribution<%1%>::variance()";
          // TODO
          return 0;
       }
@@ -719,17 +719,17 @@
       // standard_deviation provided by derived accessors.
 
       template <class RealType, class Policy>
- inline RealType skewness(const non_central_beta_distribution<RealType, Policy>& dist)
+ inline RealType skewness(const non_central_beta_distribution<RealType, Policy>& /* dist */)
       { // skewness = sqrt(l).
- const char* function = "boost::math::non_central_beta_distribution<%1%>::skewness()";
+ //const char* function = "boost::math::non_central_beta_distribution<%1%>::skewness()";
          // TODO
          return 0;
       }
 
       template <class RealType, class Policy>
- inline RealType kurtosis_excess(const non_central_beta_distribution<RealType, Policy>& dist)
+ inline RealType kurtosis_excess(const non_central_beta_distribution<RealType, Policy>& /* dist */)
       {
- const char* function = "boost::math::non_central_beta_distribution<%1%>::kurtosis_excess()";
+ //const char* function = "boost::math::non_central_beta_distribution<%1%>::kurtosis_excess()";
          // TODO
          return 0;
       } // kurtosis_excess


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