- Notifications
You must be signed in to change notification settings - Fork28
Commitbbf4fdc
Neil Conway
Prevent corr() from returning the wrong results for negative correlation
values. The previous coding essentially assumed that x = sqrt(x*x), whichdoes not hold for x < 0.Thanks to Jie Zhang at Greenplum and Gavin Sherry for reporting thisissue.1 parent4893ead commitbbf4fdc
1 file changed
+2
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
2274 | 2274 | | |
2275 | 2275 | | |
2276 | 2276 | | |
2277 | | - | |
2278 | | - | |
| 2277 | + | |
2279 | 2278 | | |
2280 | 2279 | | |
2281 | 2280 | | |
| |||
0 commit comments
Comments
(0)