Resampling with the Berger algorithm [HRV,RRI] = berger(RRI, Fs) [HRV,RRI] = berger(ONSET, Fs) RRI R-to-R interval ONSET onset time QRS-complex Fs target sampling rate HRV heart rate variability sampled with Fs RRI R-to-R interval sampled with Fs