Changeset 4103
 Timestamp:
 Sep 22, 2021, 10:25:08 AM (8 months ago)
 Location:
 branches/0.19stable
 Files:

 3 edited
Legend:
 Unmodified
 Added
 Removed

branches/0.19stable/test/Makefile.am
r4100 r4103 142 142 143 143 # tests not passing through yet 144 XFAIL_TESTS = test/kendall.test144 XFAIL_TESTS = 145 145 146 146 DISTRIBUTED_TESTS = \ 
branches/0.19stable/test/kendall.cc
r4100 r4103 171 171 double p = kendall.p_value(); 172 172 suite.out() << "p: " << p << "\n"; 173 if (p > 0.0001) { 174 suite.err() << "error: too large p\n"; 175 suite.add(false); 176 } 177 if (p < 0.00001) { 178 suite.err() << "error: too small p\n"; 173 if (p < 0.00001  p > 0.0001) { 174 suite.err() << "error: p not within [0.00001, 0.0001]\n"; 179 175 suite.add(false); 180 176 } 
branches/0.19stable/yat/statistics/Kendall.cc
r4089 r4103 41 41 #include <vector> 42 42 43 44 #include <iostream> // debug45 43 namespace theplu { 46 44 namespace yat { … … 264 262 x_ties_); 265 263 264 std::vector<double> vec(utility::pair_second_iterator(data.begin()), 265 utility::pair_second_iterator(data.end())); 266 std::sort(vec.begin(), vec.end()); 267 calculate_ties(vec.begin(), vec.end(), y_ties_); 268 266 269 /* 267 270 y1 < y2 y2 == y2 y2 > y2 … … 390 393 v2 = sum t(t1)(t2) \sum u(u1)(u2) / (9n(n1)(n2)) 391 394 392 where t is number of equal values in group i and similarly u for395 where t is number of equal x values in group i and similarly u for 393 396 y. 394 397 */
Note: See TracChangeset
for help on using the changeset viewer.