Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r56415 - in sandbox/statistics/scalar_dist: boost/scalar_dist boost/scalar_dist/algorithm boost/scalar_dist/meta libs/scalar_dist/doc libs/scalar_dist/src
From: erwann.rogard_at_[hidden]
Date: 2009-09-26 20:19:01


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

Log:
m
Text files modified:
   sandbox/statistics/scalar_dist/boost/scalar_dist/algorithm/transform.hpp | 4 ++--
   sandbox/statistics/scalar_dist/boost/scalar_dist/include.hpp | 1 +
   sandbox/statistics/scalar_dist/boost/scalar_dist/meta/include.hpp | 1 +
   sandbox/statistics/scalar_dist/libs/scalar_dist/doc/readme.txt | 17 +++++++++++------
   sandbox/statistics/scalar_dist/libs/scalar_dist/src/main.cpp | 1 +
   5 files changed, 16 insertions(+), 8 deletions(-)

Modified: sandbox/statistics/scalar_dist/boost/scalar_dist/algorithm/transform.hpp
==============================================================================
--- sandbox/statistics/scalar_dist/boost/scalar_dist/algorithm/transform.hpp (original)
+++ sandbox/statistics/scalar_dist/boost/scalar_dist/algorithm/transform.hpp 2009-09-26 20:19:00 EDT (Sat, 26 Sep 2009)
@@ -119,9 +119,9 @@
         typedef typename traits_::result_type res_;
 
         return std::transform(
- b, //1
+ b, //1
             e,
- b1,//2
+ b1, //2
             i,
             bind<res_>(
                 G<res_>(),

Modified: sandbox/statistics/scalar_dist/boost/scalar_dist/include.hpp
==============================================================================
--- sandbox/statistics/scalar_dist/boost/scalar_dist/include.hpp (original)
+++ sandbox/statistics/scalar_dist/boost/scalar_dist/include.hpp 2009-09-26 20:19:00 EDT (Sat, 26 Sep 2009)
@@ -12,6 +12,7 @@
 #include <boost/scalar_dist/unscope/include.hpp>
 #include <boost/scalar_dist/map_pdf/include.hpp>
 #include <boost/scalar_dist/algorithm/include.hpp>
+#include <boost/scalar_dist/iterator/include.hpp>
 #include <boost/scalar_dist/fun_wrap/include.hpp>
 #include <boost/scalar_dist/meta/include.hpp>
 

Modified: sandbox/statistics/scalar_dist/boost/scalar_dist/meta/include.hpp
==============================================================================
--- sandbox/statistics/scalar_dist/boost/scalar_dist/meta/include.hpp (original)
+++ sandbox/statistics/scalar_dist/boost/scalar_dist/meta/include.hpp 2009-09-26 20:19:00 EDT (Sat, 26 Sep 2009)
@@ -10,6 +10,7 @@
 #define BOOST_SCALAR_DIST_META_INCLUDE_HPP_ER_2009
 
 #include <boost/scalar_dist/meta/distribution_base.hpp>
+#include <boost/scalar_dist/meta/distribution_function_iterator.hpp>
 #include <boost/scalar_dist/meta/delegate.hpp>
 #include <boost/scalar_dist/meta/has_pdf.hpp>
 #include <boost/scalar_dist/meta/is_scalar_dist.hpp>

Modified: sandbox/statistics/scalar_dist/libs/scalar_dist/doc/readme.txt
==============================================================================
--- sandbox/statistics/scalar_dist/libs/scalar_dist/doc/readme.txt (original)
+++ sandbox/statistics/scalar_dist/libs/scalar_dist/doc/readme.txt 2009-09-26 20:19:00 EDT (Sat, 26 Sep 2009)
@@ -17,7 +17,7 @@
 
     - wrappers that decouple the function, such as pdf, from the distribution
     to which it is applied.
- - algorithms that iterate over inputs
+ - a distribution function iterator
     - mappings of distribution functionals (pdf->1/pdf)
 
 [ Useful links ]
@@ -38,11 +38,15 @@
     Decouples the function, such as pdf, from the distribution D:
         fun_wrap::cdf_<D>::instance
 
-[ algorithm ]
+[ iterator ]
 
- Thanks to fun_wrap, we can parameterize algorithms as follows:
- accumulate<fun_wrap::cdf_>(dist,b_x,e_x);
- transform<fun_wrap::cdf_>(dist,b_x,e_x,b_f);
+ Thanks to the tools develepoped in fun_wrap, we may call, for example,
+
+ std::copy(
+ make_distribution_function_iterator<math::pdf_>(dist,b),
+ make_distribution_function_iterator<math::pdf_>(dist,e),
+ std::back_inserter(vec_pdf)
+ );
 
 [ map_pdf ]
 
@@ -83,5 +87,6 @@
 
 [ History ]
 
-July 2009 : Current version
+Sep 16 2009 : deleted /algorithm and added /iterator
+July 2009 : First version
 

Modified: sandbox/statistics/scalar_dist/libs/scalar_dist/src/main.cpp
==============================================================================
--- sandbox/statistics/scalar_dist/libs/scalar_dist/src/main.cpp (original)
+++ sandbox/statistics/scalar_dist/libs/scalar_dist/src/main.cpp 2009-09-26 20:19:00 EDT (Sat, 26 Sep 2009)
@@ -1,3 +1,4 @@
+
 int main(){
 
     // Relevant examples are in


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