Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r60950 - sandbox/statistics/non_parametric/boost/statistics/detail/non_parametric/empirical_distribution
From: erwann.rogard_at_[hidden]
Date: 2010-03-30 11:38:32


Author: e_r
Date: 2010-03-30 11:38:31 EDT (Tue, 30 Mar 2010)
New Revision: 60950
URL: http://svn.boost.org/trac/boost/changeset/60950

Log:
m
Text files modified:
   sandbox/statistics/non_parametric/boost/statistics/detail/non_parametric/empirical_distribution/frequency.hpp | 28 ++++++++++++++--------------
   1 files changed, 14 insertions(+), 14 deletions(-)

Modified: sandbox/statistics/non_parametric/boost/statistics/detail/non_parametric/empirical_distribution/frequency.hpp
==============================================================================
--- sandbox/statistics/non_parametric/boost/statistics/detail/non_parametric/empirical_distribution/frequency.hpp (original)
+++ sandbox/statistics/non_parametric/boost/statistics/detail/non_parametric/empirical_distribution/frequency.hpp 2010-03-30 11:38:31 EDT (Tue, 30 Mar 2010)
@@ -1,5 +1,5 @@
 ///////////////////////////////////////////////////////////////////////////////
-// accumulator::statistics::empirical_distribution::frequency.hpp //
+// accumulator::statistics::empirical_distribution::frequency.hpp //
 // //
 // Copyright 2010 Erwann Rogard. Distributed under the Boost //
 // Software License, Version 1.0. (See accompanying file //
@@ -32,7 +32,7 @@
 
 namespace impl{
 
- // Frequency as percentage of the sample size
+ // Frequency as percentage of the sample size
     //
     // Warning : See empirical_distribution::impl::count.
         template<typename T,bool Cum,typename T1>
@@ -43,18 +43,18 @@
 
         public:
 
- frequency(dont_care_){}
+ frequency(dont_care_){}
 
- typedef size_ size_type;
+ typedef size_ size_type;
         typedef T sample_type; // See accumulator_set
- typedef T1 result_type;
+ typedef T1 result_type;
 
         void operator()(dont_care_)const{}
 
         template<typename Args>
         result_type result(const Args& args) const
         {
- typedef boost::accumulators::tag::accumulator tag_acc_;
+ typedef boost::accumulators::tag::accumulator tag_acc_;
             typedef boost::parameter::binding<Args,tag_acc_> bind_;
             typedef typename bind_::type cref_;
                 typedef boost::accumulators::tag::count tag_n_;
@@ -64,7 +64,7 @@
                             acc,
                         args[boost::accumulators::sample]
                     );
- size_ n = boost::accumulators::extract_result<tag_n_>( acc );
+ size_ n = boost::accumulators::extract_result<tag_n_>( acc );
             return static_cast<T1>(i)/static_cast<T1>(n);
         }
         };
@@ -73,7 +73,7 @@
 
 namespace tag
 {
- template<bool Cum,typename T1 = double>
+ template<bool Cum,typename T1 = double>
     struct frequency
       : boost::accumulators::depends_on<
               statistics::detail::empirical_distribution::tag::count<Cum>,
@@ -81,7 +81,7 @@
>
     {
         struct impl{
- template<typename T,typename W>
+ template<typename T,typename W>
             struct apply{
                         typedef statistics::detail::empirical_distribution
                         ::impl::frequency<T,Cum,T1> type;
@@ -92,7 +92,7 @@
 
 namespace result_of{
 
- template<bool Cum,typename T1,typename AccSet>
+ template<bool Cum,typename T1,typename AccSet>
     struct frequency{
 
                 typedef boost::statistics::detail
@@ -106,11 +106,11 @@
 namespace extract
 {
 
- // Usage : frequency<Cum,T1>(acc,x)
- template<bool Cum,typename T1,typename AccSet,typename T>
- typename boost::statistics::detail::empirical_distribution
+ // Usage : frequency<Cum,T1>(acc,x)
+ template<bool Cum,typename T1,typename AccSet,typename T>
+ typename boost::statistics::detail::empirical_distribution
             ::result_of::template frequency<Cum,T1,AccSet>::type
- frequency(AccSet const& acc,const T& x)
+ frequency(AccSet const& acc,const T& x)
     {
             typedef boost::statistics::detail::empirical_distribution
                     ::tag::frequency<Cum,T1> the_tag;


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