HBClab / NiBetaSeries

Nipype implementation of BetaSeries Correlations (Beta)
https://nibetaseries.readthedocs.io
MIT License
32 stars 28 forks source link

rounding errors and fisher's r to z transform #203

Closed jdkent closed 5 years ago

jdkent commented 5 years ago

Describe the bug sometimes correlations calculated in nilearn have a rounding error making them slightly greater than 1 or less than -1. This results in a NaN when performing the fisher's r to z transform

To Reproduce correlate two voxels with the exact same time series.

Expected behavior fisher's r to z transform should only have numbers in the inclusive range [-1, 1]

Desktop (please complete the following information): N/A

nibetaseries version devel (post 0.3.2)

Additional context This problem is being solved in another pull request