Boost logo

Boost-Commit :

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


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

Log:
m
Text files modified:
   sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/data/generate_n_sample_cdf.hpp | 10 ++++------
   sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/data/sample_cdf.hpp | 2 +-
   2 files changed, 5 insertions(+), 7 deletions(-)

Modified: sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/data/generate_n_sample_cdf.hpp
==============================================================================
--- sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/data/generate_n_sample_cdf.hpp (original)
+++ sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/data/generate_n_sample_cdf.hpp 2009-09-26 22:20:55 EDT (Sat, 26 Sep 2009)
@@ -9,15 +9,13 @@
 #ifndef BOOST_STATISTICS_DETAIL_DISTRIBUTION_TOOLKIT_DATA_GENERATE_N_SAMPLE_CDF_HPP_ER_2009
 #define BOOST_STATISTICS_DETAIL_DISTRIBUTION_TOOLKIT_DATA_GENERATE_N_SAMPLE_CDF_HPP_ER_2009
 #include <boost/utility/enable_if.hpp>
-#include <boost/typeof/typeof.hpp>
 #include <boost/statistics/detail/distribution_toolkit/meta/is_scalar_distribution.hpp>
 #include <boost/statistics/detail/distribution_toolkit/data/sample_cdf.hpp>
 #include <boost/statistics/detail/distribution_toolkit/fwd_math/cdf.hpp>
-#include <boost/statistics/detail/distribution_toolkit/random/generator.hpp>
 
 namespace boost{
 
- template<typename T,typename N,typename D,typename U>
+ template<typename T,typename N,typename G,typename D>
         typename enable_if<
             statistics::detail::distribution_toolkit
                 ::meta::is_scalar_distribution<D>,
@@ -26,12 +24,11 @@
         generate_n(
             statistics::detail::distribution_toolkit::sample_cdf<T>& sc,
             N n,
- U& urng,
- const D& dist
+ G vg,
+ D dist
         ){
             typedef statistics::detail::distribution_toolkit::sample_cdf<T> sc_;
             typedef typename sc_::size_type size_type;
- BOOST_AUTO(vg,boost::make_random_generator(urng,dist));
             size_type i = 0;
             T x, cdf;
             while(i<n){
@@ -43,6 +40,7 @@
             
         }
 
+
 }
 
 #endif
\ No newline at end of file

Modified: sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/data/sample_cdf.hpp
==============================================================================
--- sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/data/sample_cdf.hpp (original)
+++ sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/data/sample_cdf.hpp 2009-09-26 22:20:55 EDT (Sat, 26 Sep 2009)
@@ -66,7 +66,7 @@
         }
 
         //template<typename N,typename D,typename U>
- //void generate(N n, U& urng,const D& dist){
+ //void generate(N n, G& vg){
         // BOOST_AUTO(vg,boost::make_random_generator(urng,dist));
         // size_type i = 0;
         // while(i<n){


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