Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r72895 - sandbox/accumulator_ecdf/libs/accumulators/ecdf/test
From: erwann.rogard_at_[hidden]
Date: 2011-07-04 16:04:43


Author: e_r
Date: 2011-07-04 16:04:42 EDT (Mon, 04 Jul 2011)
New Revision: 72895
URL: http://svn.boost.org/trac/boost/changeset/72895

Log:
updating accumulator_ecdf
Text files modified:
   sandbox/accumulator_ecdf/libs/accumulators/ecdf/test/ks_gen.cpp | 99 ++++++++++++++++++++-------------------
   1 files changed, 50 insertions(+), 49 deletions(-)

Modified: sandbox/accumulator_ecdf/libs/accumulators/ecdf/test/ks_gen.cpp
==============================================================================
--- sandbox/accumulator_ecdf/libs/accumulators/ecdf/test/ks_gen.cpp (original)
+++ sandbox/accumulator_ecdf/libs/accumulators/ecdf/test/ks_gen.cpp 2011-07-04 16:04:42 EDT (Mon, 04 Jul 2011)
@@ -43,7 +43,7 @@
     // Warning : numeric error may dominate for large n.
 
     {
-//[test_ks_gen1
+ //[test_ks_gen1
         typedef boost::math::poisson_distribution<> dist_;
         typedef dist_::value_type val_;
         typedef boost::poisson_distribution<> random_;
@@ -64,34 +64,34 @@
         
         os << std::endl;
 
-/*
-ouputs:
-poisson(1)
-(1, 0.0803014)
-(2, 0.132121)
-(4, 0.117879)
-(8, 0.0446986)
-(16, 0.110759)
-(32, 0.204509)
-(64, 0.142009)
-(128, 0.0951339)
-(256, 0.0638839)
-(512, 0.0131026)
-(1024, 0.00740518)
-(2048, 0.00516743)
-(4096, 0.00557475)
-(8192, 0.00862651)
-(16384, 0.00288858)
-(32768, 0.003621)
-(65536, 0.00235452)
-(131072, 0.00147481)
-(262144, 0.000795791)
-(524288, 0.000504595)*/
+ /*
+ ouputs:
+ poisson(1)
+ (1, 0.0803014)
+ (2, 0.132121)
+ (4, 0.117879)
+ (8, 0.0446986)
+ (16, 0.110759)
+ (32, 0.204509)
+ (64, 0.142009)
+ (128, 0.0951339)
+ (256, 0.0638839)
+ (512, 0.0131026)
+ (1024, 0.00740518)
+ (2048, 0.00516743)
+ (4096, 0.00557475)
+ (8192, 0.00862651)
+ (16384, 0.00288858)
+ (32768, 0.003621)
+ (65536, 0.00235452)
+ (131072, 0.00147481)
+ (262144, 0.000795791)
+ (524288, 0.000504595)*/
 
-//]
+ //]
     }
     {
-//[test_ks_gen2
+ //[test_ks_gen2
         typedef boost::math::normal_distribution<> dist_;
         typedef dist_::value_type val_;
         typedef boost::normal_distribution<> random_;
@@ -110,28 +110,29 @@
             ecdf::aux_::make_kolmogorov_smirnov_generator( vg, dist )
         );
         os << std::endl;
-/*
-normal(1,1)
-(1, 0.415493)
-(2, 0.415493)
-(4, 0.189905)
-(8, 0.192415)
-(16, 0.102303)
-(32, 0.0986652)
-(64, 0.0728838)
-(128, 0.0572596)
-(256, 0.0362369)
-(512, 0.034244)
-(1024, 0.0172237)
-(2048, 0.0143129)
-(4096, 0.0174088)
-(8192, 0.0108239)
-(16384, 0.00705805)
-(32768, 0.00438796)
-(65536, 0.00198669)
-(131072, 0.00244563)
-(262144, 0.00122075)
-(524288, 0.00111729)*/
-//]
+ /*
+ outputs:
+ normal(1,1)
+ (1, 0.415493)
+ (2, 0.415493)
+ (4, 0.189905)
+ (8, 0.192415)
+ (16, 0.102303)
+ (32, 0.0986652)
+ (64, 0.0728838)
+ (128, 0.0572596)
+ (256, 0.0362369)
+ (512, 0.034244)
+ (1024, 0.0172237)
+ (2048, 0.0143129)
+ (4096, 0.0174088)
+ (8192, 0.0108239)
+ (16384, 0.00705805)
+ (32768, 0.00438796)
+ (65536, 0.00198669)
+ (131072, 0.00244563)
+ (262144, 0.00122075)
+ (524288, 0.00111729)*/
+ //]
     }
 }


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