Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r60967 - sandbox/statistics/non_parametric/boost/statistics/detail/non_parametric/kolmogorov_smirnov
From: erwann.rogard_at_[hidden]
Date: 2010-03-31 10:09:44


Author: e_r
Date: 2010-03-31 10:09:43 EDT (Wed, 31 Mar 2010)
New Revision: 60967
URL: http://svn.boost.org/trac/boost/changeset/60967

Log:
m
Text files modified:
   sandbox/statistics/non_parametric/boost/statistics/detail/non_parametric/kolmogorov_smirnov/check_convergence.hpp | 2 +-
   sandbox/statistics/non_parametric/boost/statistics/detail/non_parametric/kolmogorov_smirnov/statistic.hpp | 14 +++++++++++---
   2 files changed, 12 insertions(+), 4 deletions(-)

Modified: sandbox/statistics/non_parametric/boost/statistics/detail/non_parametric/kolmogorov_smirnov/check_convergence.hpp
==============================================================================
--- sandbox/statistics/non_parametric/boost/statistics/detail/non_parametric/kolmogorov_smirnov/check_convergence.hpp (original)
+++ sandbox/statistics/non_parametric/boost/statistics/detail/non_parametric/kolmogorov_smirnov/check_convergence.hpp 2010-03-31 10:09:43 EDT (Wed, 31 Mar 2010)
@@ -32,7 +32,7 @@
     // check_convergence<> check;
     // check(n_loops,n,n_factor,distribution,random_generator,os);
     // Generates random samples of size { k = n^p : p=1,...,n_loops} and for
- // each computes the kolmogorov-smirnov statistics. The results are passed
+ // each computes the kolmogorov-smirnov statistic. The results are passed
     // to os.
     template<
             typename T1 = double,

Modified: sandbox/statistics/non_parametric/boost/statistics/detail/non_parametric/kolmogorov_smirnov/statistic.hpp
==============================================================================
--- sandbox/statistics/non_parametric/boost/statistics/detail/non_parametric/kolmogorov_smirnov/statistic.hpp (original)
+++ sandbox/statistics/non_parametric/boost/statistics/detail/non_parametric/kolmogorov_smirnov/statistic.hpp 2010-03-31 10:09:43 EDT (Wed, 31 Mar 2010)
@@ -35,11 +35,19 @@
 
 namespace impl{
 
- // Computes the kolmogorov-statistic for a given reference distribution
+ // Usage:
+ // namespace ks = kolmogorov_smirnov;
+ // using namespace math;
+ // accumulator_set<T,stats<ks::statistic<T1> > acc;
+ // acc = boost:for_each(samples,acc)
+ // ks::extract::statistic<T1>(acc,normal_distribution<T1>(0,1));
+ //
+ // Computes the kolmogorov-statistic between the samples and the standard
+ // normal distribution
     //
     // Warning : See empirical_distribution::impl::count
- template<typename T,typename T1>
- class statistic : public boost::accumulators::accumulator_base{
+ template<typename T,typename T1>
+ class statistic : public boost::accumulators::accumulator_base{
             
         typedef std::size_t size_;
         typedef boost::accumulators::dont_care dont_care_;


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