Commit b8e80af
Replace test for Apple Mx processors without assumptions of tolerance, this test is based on observed behaviour for the stats::cor and stats::cor.test functions, where the approximation for the correlation for some vectors is nearly 1, resulting in 1 - cor(x, y) > 0, when the expected value should be 0. For example, when x = y = c(0.0, 3.0, 7.0)
1 parent d3e78af commit b8e80af
1 file changed
Lines changed: 6 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
204 | | - | |
| 204 | + | |
| 205 | + | |
205 | 206 | | |
206 | 207 | | |
207 | 208 | | |
| |||
212 | 213 | | |
213 | 214 | | |
214 | 215 | | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
219 | 220 | | |
220 | 221 | | |
221 | 222 | | |
| |||
0 commit comments