Changeset 4110
- Timestamp:
- Sep 28, 2021, 1:35:15 AM (21 months ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/0.19-stable (added) merged: 4090,4092-4093,4100,4103,4107-4108
- Property svn:mergeinfo changed
-
trunk/NEWS
r4097 r4110 11 11 yat 0.19.x series from http://dev.thep.lu.se/yat/svn/branches/0.19-stable 12 12 13 version 0.19 (released NOT YET)13 version 0.19 (released 27 September 2021) 14 14 - classifier::Target::labels(void) is now const (issue #972) 15 15 - statistics::correlation now takes a const Matrix& instead of Matrix -
trunk/README.developer
r3999 r4110 4 4 5 5 We follow the coding style described in 6 [http ://cbbp.thep.lu.se/~jari/documents/c++_coding_guidelines/index.html C++ coding guidelines]7 [http ://cbbp.thep.lu.se/~jari/documents/c++_coding_guidelines/c++_coding_guidelines.pdf pdf]8 [http ://cbbp.thep.lu.se/~jari/documents/c++_coding_guidelines/c++_coding_guidelines.ps postscript]6 [https://cbbp.thep.lu.se/~jari/documents/c++_coding_guidelines/index.html C++ coding guidelines] 7 [https://cbbp.thep.lu.se/~jari/documents/c++_coding_guidelines/c++_coding_guidelines.pdf pdf] 8 [https://cbbp.thep.lu.se/~jari/documents/c++_coding_guidelines/c++_coding_guidelines.ps postscript] 9 9 with the additions described here. 10 10 … … 14 14 (`make` and `make check`) when someone makes a clean checkout. There 15 15 is a short introduction to subversion and its usage available as 16 [http ://cbbp.thep.lu.se/~jari/documents/subversion_guidelines/index.html Subversion guidelines].16 [https://cbbp.thep.lu.se/~jari/documents/subversion_guidelines/index.html Subversion guidelines]. 17 17 We follow these guidelines. 18 18 … … 35 35 36 36 The GSL documentation describes how 37 [http://www.gnu.org/software/gsl/manual/html_node/Error-Handling.html GSL error handling]38 works. The GSL library follows the thread-safe37 [http://www.gnu.org/software/gsl/manual/html_node/Error-Handling.html 38 GSL error handling] works. The GSL library follows the thread-safe 39 39 error reporting conventions of the posix Threads library. That is, 40 40 functions return a non-zero error code to indicate an error. In most … … 42 42 returns. If GSL errors occur in constructors yat handles them 43 43 accordingly. If GSL reports errors that cannot be resolved by yat a 44 [http ://cbbp.thep.lu.se/~jari/documents/yat/classtheplu_1_1yat_1_1utility_1_1GSL__error.html GSL_error]45 exception will be thrown. However, the default behaviour of46 GSL library is to call abort() when unrecoverable errors occur and44 [https://cbbp.thep.lu.se/~jari/documents/yat/classtheplu_1_1yat_1_1utility_1_1GSL__error.html 45 GSL_error] exception will be thrown. However, the default behaviour of 46 GSL library is to call abort() when unrecoverable errors occur, which 47 47 puts the yat (and any other) GSL error treatment out of play. For 48 production environments, yat and GSL users should turn off the default 49 GSL error treatment by calling gsl_set_error_handler_off(), but also 50 when yat's GSL error treatment is preferred. 48 production environments or when yat's GSL error treatment is 49 preferred, yat and GSL users should turn off the default GSL error 50 treatment either by calling gsl_set_error_handler_off() or by passing 51 [https://cbbp.thep.lu.se/~jari/documents/yat/namespacetheplu_1_1yat_1_1utility.html#ac846162271bf37e091b4692ba865b178 52 yat::utility::gsl_error_handler] to gsl_set_error. 51 53 52 54 When new GSL functionality is introduced to yat, it is the 53 55 responsibility of the programmer to make sure that GSL errors are 54 56 treated properly. Proper GSL error treatment is very important in 55 cases when yat users turn off the default GSL error handler since :56 57 yat aims at treating GSL errors appropriately in an 58 [http://www.gotw.ca/gotw/008.htm exception safe and neutral] 59 way but there is still some work to do before we do exceptions in a neutral way.57 cases when yat users turn off the default GSL error handler since yat 58 aims at treating GSL errors appropriately in an 59 [http://www.gotw.ca/gotw/008.htm exception safe and neutral] way but 60 there is still some work to do before we do exceptions in a neutral 61 way. 60 62 61 63 === Samtools === … … 307 309 308 310 a) In section 'yat latest release' update command to 309 'svn checkout http ://dev.thep.lu.se/yat/svn/tags/A.B.C yat-A.B.C311 'svn checkout https://dev.thep.lu.se/yat/svn/tags/A.B.C yat-A.B.C 310 312 and link to 311 313 '[source:tags/A.B.C/NEWS NEWS]' … … 313 315 314 316 b) In section 'yat stable' update command to 315 'svn checkout http ://dev.thep.lu.se/yat/svn/branches/A.B-stable yat-A.B.x317 'svn checkout https://dev.thep.lu.se/yat/svn/branches/A.B-stable yat-A.B.x 316 318 and link to 317 319 '[source:branches/A.B-stable/NEWS NEWS]' … … 449 451 Copyright (C) 2004 Jari Häkkinen 450 452 Copyright (C) 2006, 2007, 2008, 2009 Jari Häkkinen, Peter Johansson 451 Copyright (C) 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2020 Peter Johansson453 Copyright (C) 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2020, 2021 Peter Johansson 452 454 453 455 This file is part of yat library, http://dev.thep.lu.se/yat -
trunk/m4/version.m4
r4091 r4110 97 97 # yat-0.18 15:0:0 98 98 # yat-0.18.1 15:1:0 99 # yat-0.19 16:0:0 99 100 # 100 101 # *Accidently, the libtool number was not updated for yat 0.5 -
trunk/test/kendall.cc
r4089 r4110 58 58 test_copy(suite); 59 59 test_p(suite); 60 //test_p_exact(suite);61 //test_p_with_ties(suite);60 test_p_exact(suite); 61 test_p_with_ties(suite); 62 62 63 63 try { 64 //test_score(suite);64 test_score(suite); 65 65 } 66 66 catch (std::exception& e) { … … 69 69 70 70 try { 71 //test_score_with_ties(suite);71 test_score_with_ties(suite); 72 72 } 73 73 catch (std::exception& e) { … … 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 } -
trunk/yat/statistics/Kendall.cc
r4089 r4110 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(t-1)(t-2) \sum u(u-1)(u-2) / (9n(n-1)(n-2)) 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.