Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r57320 - sandbox/statistics/importance_sampling/boost/statistics/detail/importance_sampling/weights
From: erwann.rogard_at_[hidden]
Date: 2009-11-03 11:39:12


Author: e_r
Date: 2009-11-03 11:39:11 EST (Tue, 03 Nov 2009)
New Revision: 57320
URL: http://svn.boost.org/trac/boost/changeset/57320

Log:
m
Text files modified:
   sandbox/statistics/importance_sampling/boost/statistics/detail/importance_sampling/weights/effective_sample_size.hpp | 12 ++++++++++--
   1 files changed, 10 insertions(+), 2 deletions(-)

Modified: sandbox/statistics/importance_sampling/boost/statistics/detail/importance_sampling/weights/effective_sample_size.hpp
==============================================================================
--- sandbox/statistics/importance_sampling/boost/statistics/detail/importance_sampling/weights/effective_sample_size.hpp (original)
+++ sandbox/statistics/importance_sampling/boost/statistics/detail/importance_sampling/weights/effective_sample_size.hpp 2009-11-03 11:39:11 EST (Tue, 03 Nov 2009)
@@ -14,7 +14,10 @@
 #include <boost/lambda/bind.hpp>
 #include <boost/ref.hpp>
 #include <boost/iterator/iterator_traits.hpp>
-#include <boost/functional/mean_var_accumulator.hpp>
+#include <boost/accumulators/accumulators.hpp>
+#include <boost/accumulators/statistics/mean.hpp>
+#include <boost/accumulators/statistics/variance.hpp>
+#include <boost/accumulators/statistics/stats.hpp>
 
 namespace boost{
 namespace statistics{
@@ -45,7 +48,12 @@
         InIt e_w
     ){
         typedef typename iterator_value<InIt>::type val_;
- typedef typename functional::mean_var_accumulator<val_>::type acc_;
+
+ typedef accumulators::stats<
+ accumulators::tag::mean,
+ accumulators::tag::variance
+ > stat_;
+ typedef accumulators::accumulator_set<val_,stat_> acc_;
 
         // Var(w/c) = Var(w) / c^2
 


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