Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r56523 - sandbox/statistics/distribution_toolkit/libs/statistics/detail/distribution_toolkit/test
From: erwann.rogard_at_[hidden]
Date: 2009-10-02 13:56:40


Author: e_r
Date: 2009-10-02 13:56:39 EDT (Fri, 02 Oct 2009)
New Revision: 56523
URL: http://svn.boost.org/trac/boost/changeset/56523

Log:
d
Removed:
   sandbox/statistics/distribution_toolkit/libs/statistics/detail/distribution_toolkit/test/unnormalized_functions.cpp

Deleted: sandbox/statistics/distribution_toolkit/libs/statistics/detail/distribution_toolkit/test/unnormalized_functions.cpp
==============================================================================
--- sandbox/statistics/distribution_toolkit/libs/statistics/detail/distribution_toolkit/test/unnormalized_functions.cpp 2009-10-02 13:56:39 EDT (Fri, 02 Oct 2009)
+++ (empty file)
@@ -1,87 +0,0 @@
-//////////////////////////////////////////////////////////////////////////////
-// distribution_toolkit::test::concept_unnormalized_functions.h //
-// //
-// (C) Copyright 2009 Erwann Rogard //
-// Use, modification and distribution are subject to the //
-// Boost Software License, Version 1.0. (See accompanying file //
-// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) //
-//////////////////////////////////////////////////////////////////////////////
-#ifndef LIBS_STATISTICS_DETAIL_DISTRIBUTION_TOOLKIT_TEST_UNNORMALIZED_FUNCTIONS_H_ER_2009
-#define LIBS_STATISTICS_DETAIL_DISTRIBUTION_TOOLKIT_TEST_UNNORMALIZED_FUNCTIONS_H_ER_2009
-#include <boost/concept/assert.hpp>
-#include <boost/statistics/detail/distribution_toolkit/distributions/include.hpp>
-#include <boost/statistics/detail/distribution_toolkit/map_pdf/include.hpp>
-
-#include <boost/statistics/detail/distribution_toolkit/concept/aggregate/unnormalized_functions.hpp>
-#include <libs/statistics/detail/distribution_toolkit/test/unnormalized_functions.cpp>
-
-template <typename T>
-void test_unnormalized_functions()
-{
- using namespace boost;
- using namespace math;
-
- namespace tk = boost::statistics::detail::distribution_toolkit;
- namespace tk_c = tk::concept;
-
-
- typedef math::chi_squared_distribution<T> chi_squared_;
- BOOST_CONCEPT_ASSERT((
- tk_c::UnnormalizedFunctions<chi_squared_>
- ));
-
- typedef math::exponential_distribution<T> exponential_;
- BOOST_CONCEPT_ASSERT((
- tk_c::UnnormalizedFunctions<exponential_>
- ));
-
- typedef math::gamma_distribution<T> gamma_;
- BOOST_CONCEPT_ASSERT((
- tk_c::UnnormalizedFunctions<gamma_>
- ));
-
- typedef math::normal_distribution<T> normal_;
- BOOST_CONCEPT_ASSERT((
- tk_c::UnnormalizedFunctions<normal_>
- ));
-
- typedef math::uniform_distribution<T> uniform_;
- BOOST_CONCEPT_ASSERT((
- tk_c::UnnormalizedFunctions<uniform_>
- ));
-
- typedef math::students_t_distribution<T> students_t_;
- BOOST_CONCEPT_ASSERT((
- tk_c::UnnormalizedFunctions<students_t_>
- ));
-
- typedef tk::wrapper< const normal_& > wrapper_;
- BOOST_CONCEPT_ASSERT((
- tk_c::UnnormalizedFunctions<wrapper_>
- ));
-
- typedef tk::location_scale_distribution< normal_ > loc_scale_;
- BOOST_CONCEPT_ASSERT((
- tk_c::UnnormalizedFunctions<loc_scale_>
- ));
-
- // Weaker requirements (simply not implemented yet)
- typedef tk::inverse_pdf< normal_ > inv_;
- BOOST_CONCEPT_ASSERT((
- tk_c::LogUnnormalizedPdf<inv_>
- ));
-
- typedef tk::product_pdf< normal_,students_t_ > prod_;
- BOOST_CONCEPT_ASSERT((
- tk_c::LogUnnormalizedPdf<prod_>
- ));
-
- typedef typename
- tk::meta_ratio_pdf< normal_,students_t_ >::type ratio_;
- BOOST_CONCEPT_ASSERT((
- tk_c::LogUnnormalizedPdf<ratio_>
- ));
-
-}
-
-#endif
\ No newline at end of file


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