|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r57319 - in sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit: distributions/chi_squared distributions/exponential distributions/gamma distributions/normal distributions/students_t distributions/uniform meta test
From: erwann.rogard_at_[hidden]
Date: 2009-11-03 11:37:01
Author: e_r
Date: 2009-11-03 11:36:58 EST (Tue, 03 Nov 2009)
New Revision: 57319
URL: http://svn.boost.org/trac/boost/changeset/57319
Log:
m
Text files modified:
sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/distributions/chi_squared/derivative_log_unnormalized_pdf.hpp | 4 ++--
sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/distributions/chi_squared/description.hpp | 2 +-
sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/distributions/chi_squared/is_math_distribution.hpp | 2 +-
sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/distributions/chi_squared/log_unnormalized_pdf.hpp | 4 ++--
sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/distributions/chi_squared/random.hpp | 2 +-
sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/distributions/exponential/description.hpp | 5 ++---
sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/distributions/exponential/is_math_distribution.hpp | 4 ++--
sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/distributions/exponential/random.hpp | 4 ++--
sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/distributions/gamma/description.hpp | 2 +-
sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/distributions/gamma/is_math_distribution.hpp | 2 +-
sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/distributions/gamma/random.hpp | 4 ++--
sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/distributions/normal/description.hpp | 2 +-
sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/distributions/normal/is_math_distribution.hpp | 2 +-
sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/distributions/normal/random.hpp | 4 ++--
sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/distributions/students_t/description.hpp | 2 +-
sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/distributions/students_t/is_math_distribution.hpp | 2 +-
sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/distributions/uniform/derivative_log_unnormalized_pdf.hpp | 2 +-
sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/distributions/uniform/description.hpp | 2 +-
sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/distributions/uniform/is_math_distribution.hpp | 2 +-
sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/distributions/uniform/log_unnormalized_pdf.hpp | 4 ++--
sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/meta/is_math_distribution.hpp | 2 +-
sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/test/random.hpp | 6 +++---
22 files changed, 32 insertions(+), 33 deletions(-)
Modified: sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/distributions/chi_squared/derivative_log_unnormalized_pdf.hpp
==============================================================================
--- sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/distributions/chi_squared/derivative_log_unnormalized_pdf.hpp (original)
+++ sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/distributions/chi_squared/derivative_log_unnormalized_pdf.hpp 2009-11-03 11:36:58 EST (Tue, 03 Nov 2009)
@@ -31,13 +31,13 @@
static const char* function =
"log_unnormalized_pdf(const chi_squared_distribution<%1%>&, %1%)";
- if(false == math::detail::check_df(
+ if(false == boost::math::detail::check_df(
function, degrees_of_freedom, &error_result, P()))
return error_result;
if((x < 0) || !(boost::math::isfinite)(x))
{
- return math::policies::raise_domain_error<T>(
+ return boost::math::policies::raise_domain_error<T>(
function, "Chi Square parameter was %1%, but must be > 0 !",
x, P());
}
Modified: sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/distributions/chi_squared/description.hpp
==============================================================================
--- sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/distributions/chi_squared/description.hpp (original)
+++ sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/distributions/chi_squared/description.hpp 2009-11-03 11:36:58 EST (Tue, 03 Nov 2009)
@@ -21,7 +21,7 @@
template<typename T,typename P>
std::string
- description(const math::chi_squared_distribution<T,P>& dist)
+ description(const boost::math::chi_squared_distribution<T,P>& dist)
{
static const char* msg = "chi_squared(%1%)";
format f(msg); f % dist.degrees_of_freedom();
Modified: sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/distributions/chi_squared/is_math_distribution.hpp
==============================================================================
--- sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/distributions/chi_squared/is_math_distribution.hpp (original)
+++ sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/distributions/chi_squared/is_math_distribution.hpp 2009-11-03 11:36:58 EST (Tue, 03 Nov 2009)
@@ -21,7 +21,7 @@
namespace meta{
template<typename T,typename P>
- struct is_math_distribution< math::chi_squared_distribution<T,P> >
+ struct is_math_distribution< boost::math::chi_squared_distribution<T,P> >
: mpl::bool_<true>{};
}// meta
Modified: sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/distributions/chi_squared/log_unnormalized_pdf.hpp
==============================================================================
--- sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/distributions/chi_squared/log_unnormalized_pdf.hpp (original)
+++ sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/distributions/chi_squared/log_unnormalized_pdf.hpp 2009-11-03 11:36:58 EST (Tue, 03 Nov 2009)
@@ -31,13 +31,13 @@
static const char* function =
"log_unnormalized_pdf(const chi_squared_distribution<%1%>&, %1%)";
- if(false == math::detail::check_df(
+ if(false == boost::math::detail::check_df(
function, degrees_of_freedom, &error_result, P()))
return error_result;
if((x <= 0) || !(boost::math::isfinite)(x))
{
- return math::policies::raise_domain_error<T>(
+ return boost::math::policies::raise_domain_error<T>(
function, "Chi Square parameter was %1%, but must be > 0 !",
x, P());
}
Modified: sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/distributions/chi_squared/random.hpp
==============================================================================
--- sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/distributions/chi_squared/random.hpp (original)
+++ sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/distributions/chi_squared/random.hpp 2009-11-03 11:36:58 EST (Tue, 03 Nov 2009)
@@ -24,7 +24,7 @@
struct random<
boost::math::chi_squared_distribution<T,P>
>{
- typedef math::chi_squared_distribution<T> dist_;
+ typedef boost::math::chi_squared_distribution<T> dist_;
typedef boost::random::chi_squared_distribution<T> type;
static type make(const dist_& d){
Modified: sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/distributions/exponential/description.hpp
==============================================================================
--- sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/distributions/exponential/description.hpp (original)
+++ sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/distributions/exponential/description.hpp 2009-11-03 11:36:58 EST (Tue, 03 Nov 2009)
@@ -22,16 +22,15 @@
template<typename T,typename P>
std::string
description(
- const math::exponential_distribution<T,P>& dist
+ const boost::math::exponential_distribution<T,P>& dist
){
static const char* msg = "exponential(%1%)";
- format f(msg); f%dist.lambda();
+ boost::format f(msg); f%dist.lambda();
return f.str();
}
}// distribution
}// toolkit
-
}// detail
}// statistics
}// boost
Modified: sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/distributions/exponential/is_math_distribution.hpp
==============================================================================
--- sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/distributions/exponential/is_math_distribution.hpp (original)
+++ sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/distributions/exponential/is_math_distribution.hpp 2009-11-03 11:36:58 EST (Tue, 03 Nov 2009)
@@ -21,8 +21,8 @@
namespace meta{
template<typename T,typename P>
- struct is_math_distribution< math::exponential_distribution<T,P> >
- : mpl::bool_<true>{};
+ struct is_math_distribution< boost::math::exponential_distribution<T,P> >
+ : boost::mpl::bool_<true>{};
}// meta
}// distribution
Modified: sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/distributions/exponential/random.hpp
==============================================================================
--- sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/distributions/exponential/random.hpp (original)
+++ sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/distributions/exponential/random.hpp 2009-11-03 11:36:58 EST (Tue, 03 Nov 2009)
@@ -22,9 +22,9 @@
template<typename T,typename P>
struct random<
- math::exponential_distribution<T,P>
+ boost::math::exponential_distribution<T,P>
>{
- typedef math::exponential_distribution<T,P> dist_;
+ typedef boost::math::exponential_distribution<T,P> dist_;
typedef boost::exponential_distribution<T> type;
static type make(const dist_& d){ return type(d.lambda()); }
Modified: sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/distributions/gamma/description.hpp
==============================================================================
--- sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/distributions/gamma/description.hpp (original)
+++ sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/distributions/gamma/description.hpp 2009-11-03 11:36:58 EST (Tue, 03 Nov 2009)
@@ -21,7 +21,7 @@
template<typename T,typename P>
std::string
- description(const math::gamma_distribution<T,P>& dist)
+ description(const boost::math::gamma_distribution<T,P>& dist)
{
static const char* msg = "gamma(%1%,%2%)";
format f(msg); f % dist.shape() % dist.scale();
Modified: sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/distributions/gamma/is_math_distribution.hpp
==============================================================================
--- sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/distributions/gamma/is_math_distribution.hpp (original)
+++ sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/distributions/gamma/is_math_distribution.hpp 2009-11-03 11:36:58 EST (Tue, 03 Nov 2009)
@@ -21,7 +21,7 @@
namespace meta{
template<typename T,typename P>
- struct is_math_distribution< math::gamma_distribution<T,P> >
+ struct is_math_distribution< boost::math::gamma_distribution<T,P> >
: mpl::bool_<true>{};
}// meta
Modified: sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/distributions/gamma/random.hpp
==============================================================================
--- sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/distributions/gamma/random.hpp (original)
+++ sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/distributions/gamma/random.hpp 2009-11-03 11:36:58 EST (Tue, 03 Nov 2009)
@@ -23,9 +23,9 @@
template<typename T,typename P>
struct random<
- math::gamma_distribution<T,P>
+ boost::math::gamma_distribution<T,P>
>{
- typedef math::gamma_distribution<T,P> dist_;
+ typedef boost::math::gamma_distribution<T,P> dist_;
typedef boost::gamma_distribution<T> z_;
typedef boost::random::location_scale_distribution<z_> type;
Modified: sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/distributions/normal/description.hpp
==============================================================================
--- sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/distributions/normal/description.hpp (original)
+++ sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/distributions/normal/description.hpp 2009-11-03 11:36:58 EST (Tue, 03 Nov 2009)
@@ -21,7 +21,7 @@
template<typename T,typename P>
std::string
- description(const math::normal_distribution<T,P>& dist)
+ description(const boost::math::normal_distribution<T,P>& dist)
{
static const char* msg = "normal(%1%,%2%)";
format f(msg); f % dist.location() % dist.scale();
Modified: sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/distributions/normal/is_math_distribution.hpp
==============================================================================
--- sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/distributions/normal/is_math_distribution.hpp (original)
+++ sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/distributions/normal/is_math_distribution.hpp 2009-11-03 11:36:58 EST (Tue, 03 Nov 2009)
@@ -21,7 +21,7 @@
namespace meta{
template<typename T,typename P>
- struct is_math_distribution< math::normal_distribution<T,P> >
+ struct is_math_distribution< boost::math::normal_distribution<T,P> >
: mpl::bool_<true>{};
}// meta
Modified: sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/distributions/normal/random.hpp
==============================================================================
--- sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/distributions/normal/random.hpp (original)
+++ sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/distributions/normal/random.hpp 2009-11-03 11:36:58 EST (Tue, 03 Nov 2009)
@@ -22,9 +22,9 @@
template<typename T,typename P>
struct random<
- math::normal_distribution<T,P>
+ boost::math::normal_distribution<T,P>
>{
- typedef math::normal_distribution<T,P> dist_;
+ typedef boost::math::normal_distribution<T,P> dist_;
typedef boost::normal_distribution<T> type;
static type make(const dist_& d){
Modified: sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/distributions/students_t/description.hpp
==============================================================================
--- sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/distributions/students_t/description.hpp (original)
+++ sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/distributions/students_t/description.hpp 2009-11-03 11:36:58 EST (Tue, 03 Nov 2009)
@@ -21,7 +21,7 @@
template<typename T,typename P>
std::string
- description(const math::students_t_distribution<T,P>& dist)
+ description(const boost::math::students_t_distribution<T,P>& dist)
{
static const char* msg = "students_t(%1%)";
format f(msg); f%dist.degrees_of_freedom();
Modified: sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/distributions/students_t/is_math_distribution.hpp
==============================================================================
--- sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/distributions/students_t/is_math_distribution.hpp (original)
+++ sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/distributions/students_t/is_math_distribution.hpp 2009-11-03 11:36:58 EST (Tue, 03 Nov 2009)
@@ -21,7 +21,7 @@
namespace meta{
template<typename T,typename P>
- struct is_math_distribution< math::students_t_distribution<T,P> >
+ struct is_math_distribution< boost::math::students_t_distribution<T,P> >
: mpl::bool_<true>{};
}// meta
Modified: sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/distributions/uniform/derivative_log_unnormalized_pdf.hpp
==============================================================================
--- sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/distributions/uniform/derivative_log_unnormalized_pdf.hpp (original)
+++ sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/distributions/uniform/derivative_log_unnormalized_pdf.hpp 2009-11-03 11:36:58 EST (Tue, 03 Nov 2009)
@@ -27,7 +27,7 @@
T lower = dist.lower();
T upper = dist.upper();
T result; // of checks.
- if(false == math::detail::check_uniform(
+ if(false == boost::math::detail::check_uniform(
"boost::math::pdf(const uniform_distribution<%1%>&, %1%)",
lower, upper, &result, P()))
{
Modified: sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/distributions/uniform/description.hpp
==============================================================================
--- sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/distributions/uniform/description.hpp (original)
+++ sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/distributions/uniform/description.hpp 2009-11-03 11:36:58 EST (Tue, 03 Nov 2009)
@@ -21,7 +21,7 @@
template<typename T,typename P>
std::string
- description(const math::uniform_distribution<T,P>& dist)
+ description(const boost::math::uniform_distribution<T,P>& dist)
{
static const char* msg = "uniform(%1%,%2%)";
format f(msg); f%dist.lower()%dist.upper();
Modified: sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/distributions/uniform/is_math_distribution.hpp
==============================================================================
--- sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/distributions/uniform/is_math_distribution.hpp (original)
+++ sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/distributions/uniform/is_math_distribution.hpp 2009-11-03 11:36:58 EST (Tue, 03 Nov 2009)
@@ -21,7 +21,7 @@
namespace meta{
template<typename T,typename P>
- struct is_math_distribution< math::uniform_distribution<T,P> >
+ struct is_math_distribution< boost::math::uniform_distribution<T,P> >
: mpl::bool_<true>{};
}// meta
Modified: sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/distributions/uniform/log_unnormalized_pdf.hpp
==============================================================================
--- sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/distributions/uniform/log_unnormalized_pdf.hpp (original)
+++ sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/distributions/uniform/log_unnormalized_pdf.hpp 2009-11-03 11:36:58 EST (Tue, 03 Nov 2009)
@@ -28,13 +28,13 @@
T lower = dist.lower();
T upper = dist.upper();
T result; // of checks.
- if(false == math::detail::check_uniform(
+ if(false == boost::math::detail::check_uniform(
"boost::math::pdf(const uniform_distribution<%1%>&, %1%)",
lower, upper, &result, P()))
{
return result;
}
- if(false == math::detail::check_uniform_x(
+ if(false == boost::math::detail::check_uniform_x(
"boost::math::pdf(const uniform_distribution<%1%>&, %1%)",
x, &result, P()))
{
Modified: sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/meta/is_math_distribution.hpp
==============================================================================
--- sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/meta/is_math_distribution.hpp (original)
+++ sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/meta/is_math_distribution.hpp 2009-11-03 11:36:58 EST (Tue, 03 Nov 2009)
@@ -18,7 +18,7 @@
namespace meta{
template<typename D>
- struct is_math_distribution : mpl::bool_<false> {};
+ struct is_math_distribution : boost::mpl::bool_<false> {};
// Specialize to bool_<true> for distribution defined in boost::math only
Modified: sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/test/random.hpp
==============================================================================
--- sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/test/random.hpp (original)
+++ sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/test/random.hpp 2009-11-03 11:36:58 EST (Tue, 03 Nov 2009)
@@ -21,7 +21,7 @@
#include <boost/fusion/sequence/intrinsic/at_key.hpp>
#include <boost/fusion/include/at_key.hpp>
-#include <boost/statistics/detail/fusion/functor/map_identity_f.hpp>
+#include <boost/statistics/detail/fusion/map/identity_f.hpp>
#include <boost/statistics/detail/non_parametric/kolmogorov_smirnov/statistic.hpp>
#include <boost/statistics/detail/distribution_toolkit/meta/bind_delegate.hpp>
@@ -57,7 +57,7 @@
typedef typename common::meta::value<D>::type val_;
typedef mt19937 urng_;
typedef typename meta::bind_delegate<D>::type fun_;
- typedef detail::fusion::functor::map_identity_f<
+ typedef detail::fusion::map::identity_f<
mpl::int_<0>,
mpl::int_<1>,
fun_
@@ -71,7 +71,7 @@
key1_,
key2_
> kolmogorov_smirnov_stat_;
- typedef typename boost::result_of<functor_(const val_&)>::type data_;
+ typedef typename boost::result_of<functor_(const val_&)>::type data_;
typedef std::vector<data_> dataset_;
// Constants
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