Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r56437 - sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/data
From: erwann.rogard_at_[hidden]
Date: 2009-09-27 14:18:25


Author: e_r
Date: 2009-09-27 14:18:24 EDT (Sun, 27 Sep 2009)
New Revision: 56437
URL: http://svn.boost.org/trac/boost/changeset/56437

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

Modified: sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/data/generate2_n_sample_cdf.hpp
==============================================================================
--- sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/data/generate2_n_sample_cdf.hpp (original)
+++ sandbox/statistics/distribution_toolkit/boost/statistics/detail/distribution_toolkit/data/generate2_n_sample_cdf.hpp 2009-09-27 14:18:24 EDT (Sun, 27 Sep 2009)
@@ -13,6 +13,8 @@
 
 namespace boost{
 
+ // Adds n elements randomly drawn from dist, together with their cdf
+ // to the sample maintained in sc
         template<typename T,typename N,typename U,typename D>
         typename enable_if<
             statistics::detail::distribution_toolkit
@@ -23,7 +25,7 @@
             statistics::detail::distribution_toolkit::sample_cdf<T>& sc,
             N n,
             U& urng,
- const D& dist
+ D dist
         ){
             return boost::generate_n(
                 sc,

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-27 14:18:24 EDT (Sun, 27 Sep 2009)
@@ -15,6 +15,8 @@
 
 namespace boost{
 
+ // Adds n elements generated by vg, together with their cdf under dist,
+ // to the sample maintained in sc
         template<typename T,typename N,typename G,typename D>
         typename enable_if<
             statistics::detail::distribution_toolkit

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-27 14:18:24 EDT (Sun, 27 Sep 2009)
@@ -65,20 +65,6 @@
             this->sample_.push_back(map);
         }
 
- //template<typename N,typename D,typename U>
- //void generate(N n, G& vg){
- // BOOST_AUTO(vg,boost::make_random_generator(urng,dist));
- // size_type i = 0;
- // while(i<n){
- // (*this)(vg(),dist);
- //
- // cdf(dist,x)
- //
- // ++i;
- // };
- //
- //}
-
         // Access
         size_type size()const{ return boost::size(this->sample()); }
         const sample_type& sample()const{ return this->sample_; }


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