circstat / pycircstat

Toolbox for circular statistics with Python
MIT License
157 stars 42 forks source link

Updated _corr and test_corrcl #54

Closed banhrich closed 7 years ago

banhrich commented 7 years ago

While using the "corrcl" function, I was obtaining correlation values >1 (around 4 and 5 actually). I modified the _corr function and my multiple correlations between angle vs linear datasets is now between 0 and 1.

There was a typo in the test_corrcl function that used corrcc instead of corrcl for the test. This gave unexpected correlation values. After fixing this and the corrcl function itself in descriptive.py, the function should work as intended.