Open adesider73 opened 3 years ago
Hi @adesider73, how are you doing?
Thanks for your feedback. This is an expected bug :/
This happens, because in some cases the NumPy can not represent the tiny values present in the calculation of smoothness priors and round them off.
I will check if it is possible to overcome this limitation using Numpy's float128
.
Hi Rhenan, I'm doing good - how are you? Many thanks for your prompt reply and the explanation - much appreciated!
I've recently encountered this bug as well. Unfortunately it has made smoothness priors unusable for me and I've had to switch to Savitzsky-Golay.
When calculating rri_detrended with the smoothness priors method:
rri_detrended = smoothness_priors(rri, l=500, fs=4.0)
the rri_detrended values have a spike towards the end (see 2nd graph below) for both sample files real_rri.txt and rest_rri.txt which looks off. Is this expected behaviour or a bug? Thanks for your feedback.