- Timestamp:
- Nov 15, 2008, 5:01:46 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/yat/statistics/KolmogorovSmirnov.cc
r1617 r1626 29 29 #include <deque> 30 30 #include <functional> 31 #include <limits> 31 32 32 33 namespace theplu { … … 84 85 targets.push_back(i->second); 85 86 87 double score_threshold = score()-10*std::numeric_limits<double>().epsilon(); 88 86 89 for (size_t i=0; i<perm; ++i){ 87 90 random::random_shuffle(targets.begin(), targets.end()); … … 92 95 ks.add(iter->first.first, *target_i, iter->first.second); 93 96 94 if (ks.score()>=score ())97 if (ks.score()>=score_threshold) 95 98 ++count; 96 99 }
Note: See TracChangeset
for help on using the changeset viewer.