Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r56431 - sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/data
From: erwann.rogard_at_[hidden]
Date: 2009-09-26 22:21:49


Author: e_r
Date: 2009-09-26 22:21:49 EDT (Sat, 26 Sep 2009)
New Revision: 56431
URL: http://svn.boost.org/trac/boost/changeset/56431

Log:
a
Added:
   sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/data/generate2_n_sample_cdf.hpp (contents, props changed)
   sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/data/include.hpp (contents, props changed)

Added: sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/data/generate2_n_sample_cdf.hpp
==============================================================================
--- (empty file)
+++ sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/data/generate2_n_sample_cdf.hpp 2009-09-26 22:21:49 EDT (Sat, 26 Sep 2009)
@@ -0,0 +1,38 @@
+//////////////////////////////////////////////////////////////////////////////
+// distribution_toolkit::data::generate2_n_sample_cdf.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_DATA_GENERATE2_N_SAMPLE_CDF_HPP_ER_2009
+#define BOOST_STATISTICS_DETAIL_DISTRIBUTION_TOOLKIT_DATA_GENERATE2_N_SAMPLE_CDF_HPP_ER_2009
+#include <boost/statistics/detail/distribution_toolkit/data/generate_n_sample_cdf.hpp>
+#include <boost/statistics/detail/distribution_toolkit/random/generator.hpp>
+
+namespace boost{
+
+ template<typename T,typename N,typename U,typename D>
+ typename enable_if<
+ statistics::detail::distribution_toolkit
+ ::meta::is_scalar_distribution<D>,
+ void
+ >::type
+ generate2_n(
+ statistics::detail::distribution_toolkit::sample_cdf<T>& sc,
+ N n,
+ U& urng,
+ const D& dist
+ ){
+ return boost::generate_n(
+ sc,
+ n,
+ boost::make_random_generator(urng,dist),
+ dist
+ );
+ }
+
+}
+
+#endif

Added: sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/data/include.hpp
==============================================================================
--- (empty file)
+++ sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/data/include.hpp 2009-09-26 22:21:49 EDT (Sat, 26 Sep 2009)
@@ -0,0 +1,16 @@
+//////////////////////////////////////////////////////////////////////////////
+// distribution_toolkit::data::include.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_DATA_INCLUDE_HPP_ER_2009
+#define BOOST_STATISTICS_DETAIL_DISTRIBUTION_TOOLKIT_DATA_INCLUDE_HPP_ER_2009
+
+#include <boost/statistics/detail/distribution_toolkit/data/sample_cdf.hpp>
+#include <boost/statistics/detail/distribution_toolkit/data/generate_n_sample_cdf.hpp>
+#include <boost/statistics/detail/distribution_toolkit/data/generate2_n_sample_cdf.hpp>
+
+#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