Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r58993 - in sandbox/statistics/detail/accumulator: boost/statistics/detail/accumulator/statistics boost/statistics/detail/accumulator/statistics/keyword libs/statistics/detail/src
From: erwann.rogard_at_[hidden]
Date: 2010-01-13 20:30:41


Author: e_r
Date: 2010-01-13 20:30:40 EST (Wed, 13 Jan 2010)
New Revision: 58993
URL: http://svn.boost.org/trac/boost/changeset/58993

Log:
m
Text files modified:
   sandbox/statistics/detail/accumulator/boost/statistics/detail/accumulator/statistics/count_less_than.hpp | 17 ++++++++++-------
   sandbox/statistics/detail/accumulator/boost/statistics/detail/accumulator/statistics/keyword/threshold.hpp | 6 ++----
   sandbox/statistics/detail/accumulator/boost/statistics/detail/accumulator/statistics/proportion_less_than.hpp | 17 ++++++++++-------
   sandbox/statistics/detail/accumulator/libs/statistics/detail/src/main.cpp | 5 ++++-
   4 files changed, 26 insertions(+), 19 deletions(-)

Modified: sandbox/statistics/detail/accumulator/boost/statistics/detail/accumulator/statistics/count_less_than.hpp
==============================================================================
--- sandbox/statistics/detail/accumulator/boost/statistics/detail/accumulator/statistics/count_less_than.hpp (original)
+++ sandbox/statistics/detail/accumulator/boost/statistics/detail/accumulator/statistics/count_less_than.hpp 2010-01-13 20:30:40 EST (Wed, 13 Jan 2010)
@@ -79,13 +79,16 @@
 namespace extract
 {
 
- template<typename AccumulatorSet>
- typename
- boost::mpl::apply<AccumulatorSet,tag::count_less_than>::type::result_type
- count_less_than(AccumulatorSet const& acc){
- typedef tag::count_less_than the_tag;
- return boost::accumulators::extract_result<the_tag>(acc);
- }
+ template<typename AccumulatorSet>
+ typename
+ boost::mpl::apply<
+ AccumulatorSet,
+ statistics::detail::accumulator::tag::count_less_than
+ >::type::result_type
+ count_less_than(AccumulatorSet const& acc){
+ typedef statistics::detail::accumulator::tag::count_less_than the_tag;
+ return boost::accumulators::extract_result<the_tag>(acc);
+ }
 
 }
 

Modified: sandbox/statistics/detail/accumulator/boost/statistics/detail/accumulator/statistics/keyword/threshold.hpp
==============================================================================
--- sandbox/statistics/detail/accumulator/boost/statistics/detail/accumulator/statistics/keyword/threshold.hpp (original)
+++ sandbox/statistics/detail/accumulator/boost/statistics/detail/accumulator/statistics/keyword/threshold.hpp 2010-01-13 20:30:40 EST (Wed, 13 Jan 2010)
@@ -1,5 +1,5 @@
 ///////////////////////////////////////////////////////////////////////////////
-// statistics::detail::accumulator::threshold.hpp //
+// statistics::detail::accumulator::keyword::threshold.hpp //
 // //
 // Copyright 2009 Erwann Rogard. Distributed under the Boost //
 // Software License, Version 1.0. (See accompanying file //
@@ -9,14 +9,12 @@
 #define BOOST_STATISTICS_DETAIL_ACCUMULATOR_STATISTICS_KEYWORD_THRESHOLD_HPP_2009
 #include <boost/parameter/name.hpp>
 #include <boost/parameter/keyword.hpp>
+#include <boost/statistics/detail/accumulator/tag/threshold.hpp>
 
 namespace boost {
 namespace statistics{
 namespace detail{
 namespace accumulator{
-namespace tag{
- struct threshold{};
-}// tag
 namespace keyword{
     namespace
     {

Modified: sandbox/statistics/detail/accumulator/boost/statistics/detail/accumulator/statistics/proportion_less_than.hpp
==============================================================================
--- sandbox/statistics/detail/accumulator/boost/statistics/detail/accumulator/statistics/proportion_less_than.hpp (original)
+++ sandbox/statistics/detail/accumulator/boost/statistics/detail/accumulator/statistics/proportion_less_than.hpp 2010-01-13 20:30:40 EST (Wed, 13 Jan 2010)
@@ -80,13 +80,16 @@
 namespace extract
 {
 
- template<typename AccSet>
- typename
- boost::mpl::apply<AccSet,tag::proportion_less_than>::type::result_type
- proportion_less_than(AccSet const& acc){
- typedef tag::proportion_less_than the_tag;
- return boost::accumulators::extract_result<the_tag>(acc);
- }
+ template<typename AccSet>
+ typename boost::mpl::apply<
+ AccSet,
+ statistics::detail::accumulator::tag::proportion_less_than
+ >::type::result_type
+ proportion_less_than(AccSet const& acc){
+ typedef statistics::detail::accumulator
+ ::tag::proportion_less_than the_tag;
+ return boost::accumulators::extract_result<the_tag>(acc);
+ }
 
 }
 

Modified: sandbox/statistics/detail/accumulator/libs/statistics/detail/src/main.cpp
==============================================================================
--- sandbox/statistics/detail/accumulator/libs/statistics/detail/src/main.cpp (original)
+++ sandbox/statistics/detail/accumulator/libs/statistics/detail/src/main.cpp 2010-01-13 20:30:40 EST (Wed, 13 Jan 2010)
@@ -1,7 +1,10 @@
+#include <iostream>
+#include <libs/statistics/detail/example/frequency_int.h>
 
-// No examples at present
 int main()
 {
+ example_frequency_int(std::cout);
+
 
     return 0;
 }
\ 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