|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r49486 - in sandbox/math_toolkit: boost/math/distributions libs/math/test/compile_test
From: john_at_[hidden]
Date: 2008-10-29 09:42:54
Author: johnmaddock
Date: 2008-10-29 09:42:53 EDT (Wed, 29 Oct 2008)
New Revision: 49486
URL: http://svn.boost.org/trac/boost/changeset/49486
Log:
Integrated lognormal distro into the concept check tests.
Text files modified:
sandbox/math_toolkit/boost/math/distributions/fwd.hpp | 4 ++++
sandbox/math_toolkit/boost/math/distributions/logistic.hpp | 2 +-
sandbox/math_toolkit/libs/math/test/compile_test/instantiate.hpp | 3 +++
3 files changed, 8 insertions(+), 1 deletions(-)
Modified: sandbox/math_toolkit/boost/math/distributions/fwd.hpp
==============================================================================
--- sandbox/math_toolkit/boost/math/distributions/fwd.hpp (original)
+++ sandbox/math_toolkit/boost/math/distributions/fwd.hpp 2008-10-29 09:42:53 EDT (Wed, 29 Oct 2008)
@@ -39,6 +39,9 @@
class gamma_distribution;
template <class RealType, class Policy>
+class logistic_distribution;
+
+template <class RealType, class Policy>
class lognormal_distribution;
template <class RealType, class Policy>
@@ -92,6 +95,7 @@
typedef boost::math::extreme_value_distribution<Type, Policy> extreme_value;\
typedef boost::math::fisher_f_distribution<Type, Policy> fisher_f;\
typedef boost::math::gamma_distribution<Type, Policy> gamma;\
+ typedef boost::math::logistic_distribution<Type, Policy> logistic;\
typedef boost::math::lognormal_distribution<Type, Policy> lognormal;\
typedef boost::math::negative_binomial_distribution<Type, Policy> negative_binomial;\
typedef boost::math::normal_distribution<Type, Policy> normal;\
Modified: sandbox/math_toolkit/boost/math/distributions/logistic.hpp
==============================================================================
--- sandbox/math_toolkit/boost/math/distributions/logistic.hpp (original)
+++ sandbox/math_toolkit/boost/math/distributions/logistic.hpp 2008-10-29 09:42:53 EDT (Wed, 29 Oct 2008)
@@ -57,7 +57,7 @@
}
template <class RealType, class Policy>
- inline const std::pair<RealType, RealType> support(const logistic_distribution<RealType, Policy>& dist)
+ inline const std::pair<RealType, RealType> support(const logistic_distribution<RealType, Policy>& /* dist */)
{ // Range of supported values for random variable x.
// This is range where cdf rises from 0 to 1, and outside it, the pdf is zero.
using boost::math::tools::max_value;
Modified: sandbox/math_toolkit/libs/math/test/compile_test/instantiate.hpp
==============================================================================
--- sandbox/math_toolkit/libs/math/test/compile_test/instantiate.hpp (original)
+++ sandbox/math_toolkit/libs/math/test/compile_test/instantiate.hpp 2008-10-29 09:42:53 EDT (Wed, 29 Oct 2008)
@@ -68,6 +68,7 @@
function_requires<DistributionConcept<extreme_value_distribution<RealType> > >();
function_requires<DistributionConcept<fisher_f_distribution<RealType> > >();
function_requires<DistributionConcept<gamma_distribution<RealType> > >();
+ function_requires<DistributionConcept<logistic_distribution<RealType> > >();
function_requires<DistributionConcept<lognormal_distribution<RealType> > >();
function_requires<DistributionConcept<negative_binomial_distribution<RealType> > >();
function_requires<DistributionConcept<normal_distribution<RealType> > >();
@@ -92,6 +93,7 @@
function_requires<DistributionConcept<extreme_value_distribution<RealType, test_policy> > >();
function_requires<DistributionConcept<fisher_f_distribution<RealType, test_policy> > >();
function_requires<DistributionConcept<gamma_distribution<RealType, test_policy> > >();
+ function_requires<DistributionConcept<logistic_distribution<RealType, test_policy> > >();
function_requires<DistributionConcept<lognormal_distribution<RealType, test_policy> > >();
function_requires<DistributionConcept<non_central_chi_squared_distribution<RealType, test_policy> > >();
function_requires<DistributionConcept<negative_binomial_distribution<RealType, test_policy> > >();
@@ -117,6 +119,7 @@
function_requires<DistributionConcept<dist_test::extreme_value > >();
function_requires<DistributionConcept<dist_test::fisher_f > >();
function_requires<DistributionConcept<dist_test::gamma > >();
+ function_requires<DistributionConcept<dist_test::logistic > >();
function_requires<DistributionConcept<dist_test::lognormal > >();
function_requires<DistributionConcept<dist_test::negative_binomial > >();
function_requires<DistributionConcept<dist_test::normal > >();
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