Hey!
You should add this to patches also to the other correlation functions:
* Add to statlib for kendall (line 991):
TINY = 1e-30
n1 = max(TINY, n1)
n2 = max(TINY, n2)
- happen when try to compare [0,0,0,0,0] and [1,2,3,4,5]
* Add to statlib for pearson (line 883)
r_den = math.sqrt((n*ss(x) -
square_of_sums(x)+TINY)*(n*ss(y)-square_of_sums(y)+TINY))
- happen when try to compare [0,0,0,0,0] and [1,2,3,4,5]
Original issue reported on code.google.com by jas...@gmail.com on 5 Sep 2008 at 4:26
Original issue reported on code.google.com by
jas...@gmail.com
on 5 Sep 2008 at 4:26