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.

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.