Changeset 1595
- Timestamp:
- Oct 22, 2008, 11:58:26 PM (14 years ago)
- Location:
- trunk/yat/statistics
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/yat/statistics/KolmogorovSmirnov.cc
r1594 r1595 101 101 double KolmogorovSmirnov::score(void) const 102 102 { 103 return std::abs(signed_score()); 104 } 105 106 107 double KolmogorovSmirnov::signed_score(void) const 108 { 103 109 if (cached_) 104 110 return score_; … … 111 117 utility::abs<double> a; 112 118 using utility::make_compose_f_gx_hy; 113 score_ = std::abs(*std::max_element(v.begin(), v.end(), 114 make_compose_f_gx_hy(l, a, a))); 119 score_ = *std::max_element(v.begin(), v.end(), 120 make_compose_f_gx_hy(l, a, a)); 121 cached_=true; 115 122 return score_; 116 123 } -
trunk/yat/statistics/KolmogorovSmirnov.h
r1593 r1595 85 85 double score(void) const; 86 86 87 /** 88 Same as score() but keeping the sign, in other words, 89 abs(signed_score())==score() 90 91 \since New in yat 0.5 92 */ 93 double signed_score(void) const; 94 87 95 private: 88 96 void scores(std::vector<double>&) const;
Note: See TracChangeset
for help on using the changeset viewer.