Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r58167 - in sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/map_pdf: inverse_pdf product_pdf
From: erwann.rogard_at_[hidden]
Date: 2009-12-05 20:13:34


Author: e_r
Date: 2009-12-05 20:13:33 EST (Sat, 05 Dec 2009)
New Revision: 58167
URL: http://svn.boost.org/trac/boost/changeset/58167

Log:
m
Added:
   sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/map_pdf/inverse_pdf/description.hpp (contents, props changed)
   sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/map_pdf/inverse_pdf/os.hpp (contents, props changed)
   sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/map_pdf/product_pdf/description.hpp (contents, props changed)
   sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/map_pdf/product_pdf/os.hpp (contents, props changed)

Added: sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/map_pdf/inverse_pdf/description.hpp
==============================================================================
--- (empty file)
+++ sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/map_pdf/inverse_pdf/description.hpp 2009-12-05 20:13:33 EST (Sat, 05 Dec 2009)
@@ -0,0 +1,36 @@
+//////////////////////////////////////////////////////////////////////////////////////
+// distribution::toolkit::distributions::inverse_pdf::description.hpp //
+// //
+// (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 BOOST_STATISTICS_DETAIL_DISTRIBUTION_TOOLKIT_MAP_PDF_INVERSE_PDF_DESCRIPTION_HPP_ER_2009
+#define BOOST_STATISTICS_DETAIL_DISTRIBUTION_TOOLKIT_MAP_PDF_INVERSE_PDF_DESCRIPTION_HPP_ER_2009
+#include <string>
+#include <boost/format.hpp>
+#include <boost/statistics/detail/distribution_toolkit/map_pdf/inverse_pdf/inverse_pdf.hpp>
+
+namespace boost{
+namespace statistics{
+namespace detail{
+namespace distribution{
+namespace toolkit{
+
+ template<typename D>
+ std::string
+ description(const inverse_pdf<D>& dist)
+ {
+ static const char* msg = "inverse_pdf<%1%>";
+ format f(msg); f%description(dist.distribution());
+ return (f.str());
+ }
+
+}// toolkit
+}// distribution
+}// detail
+}// statistics
+}// boost
+
+#endif
\ No newline at end of file

Added: sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/map_pdf/inverse_pdf/os.hpp
==============================================================================
--- (empty file)
+++ sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/map_pdf/inverse_pdf/os.hpp 2009-12-05 20:13:33 EST (Sat, 05 Dec 2009)
@@ -0,0 +1,35 @@
+/////////////////////////////////////////////////////////////////////////////////
+// distribution::toolkit::map_pdf::inverse_pdf::os.hpp //
+// //
+// (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 BOOST_STATISTICS_DETAIL_DISTRIBUTION_TOOLKIT_MAP_PDF_INVERSE_PDF_OS_HPP_ER_2009
+#define BOOST_STATISTICS_DETAIL_DISTRIBUTION_TOOLKIT_MAP_PDF_INVERSE_PDF_OS_HPP_ER_2009
+#include <boost/statistics/detail/distribution_toolkit/map_pdf/inverse_pdf/inverse_pdf.hpp>
+
+namespace boost{
+namespace statistics{
+namespace detail{
+namespace distribution{
+namespace toolkit{
+
+ template<typename D>
+ std::ostream&
+ operator<<(
+ std::ostream& os,
+ const inverse_pdf<D>& dist
+ )
+ {
+ return (os << description(dist));
+ }
+
+}// toolkit
+}// distribution
+}// detail
+}// statistics
+}// boost
+
+#endif
\ No newline at end of file

Added: sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/map_pdf/product_pdf/description.hpp
==============================================================================
--- (empty file)
+++ sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/map_pdf/product_pdf/description.hpp 2009-12-05 20:13:33 EST (Sat, 05 Dec 2009)
@@ -0,0 +1,36 @@
+//////////////////////////////////////////////////////////////////////////////////////
+// distribution::toolkit::distributions::product_pdf::description.hpp //
+// //
+// (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 BOOST_STATISTICS_DETAIL_DISTRIBUTION_TOOLKIT_MAP_PDF_PRODUCT_PDF_DESCRIPTION_HPP_ER_2009
+#define BOOST_STATISTICS_DETAIL_DISTRIBUTION_TOOLKIT_MAP_PDF_PRODUCT_PDF_DESCRIPTION_HPP_ER_2009
+#include <string>
+#include <boost/format.hpp>
+#include <boost/statistics/detail/distribution_toolkit/map_pdf/product_pdf/product_pdf.hpp>
+
+namespace boost{
+namespace statistics{
+namespace detail{
+namespace distribution{
+namespace toolkit{
+
+ template<typename F,typename S>
+ std::string
+ description(const product_pdf<F,S>& dist)
+ {
+ static const char* msg = "product_pdf<%1%,%2%>";
+ format f(msg); f%description(dist.first())%description(dist.second());
+ return (f.str());
+ }
+
+}// toolkit
+}// distribution
+}// detail
+}// statistics
+}// boost
+
+#endif
\ No newline at end of file

Added: sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/map_pdf/product_pdf/os.hpp
==============================================================================
--- (empty file)
+++ sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/map_pdf/product_pdf/os.hpp 2009-12-05 20:13:33 EST (Sat, 05 Dec 2009)
@@ -0,0 +1,35 @@
+/////////////////////////////////////////////////////////////////////////////////
+// distribution::toolkit::map_pdf::inverse_pdf::os.hpp //
+// //
+// (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 BOOST_STATISTICS_DETAIL_DISTRIBUTION_TOOLKIT_MAP_PDF_PRODUCT_PDF_OS_HPP_ER_2009
+#define BOOST_STATISTICS_DETAIL_DISTRIBUTION_TOOLKIT_MAP_PDF_PRODUCT_PDF_OS_HPP_ER_2009
+#include <boost/statistics/detail/distribution_toolkit/map_pdf/inverse_pdf/inverse_pdf.hpp>
+
+namespace boost{
+namespace statistics{
+namespace detail{
+namespace distribution{
+namespace toolkit{
+
+ template<typename F,typename S>
+ std::ostream&
+ operator<<(
+ std::ostream& os,
+ const product_pdf<F,S>& dist
+ )
+ {
+ return (os << description(dist));
+ }
+
+}// toolkit
+}// distribution
+}// detail
+}// statistics
+}// boost
+
+#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