Main siteMain site  ForumForum  ForumSearch  Private messageEmail contact  RegisterRegister  Log inLog in 
Topic: TimeIntervalResampler element does not resample as it should
Reply to topic
Author Message
Marius



Joined: Jun 10, 2013
Posts: 51

PostPosted: Jul 10, 2013 6:15 PM    Post subject: TimeIntervalResampler element does not resample as it should

Hi Jarek,

I am working with
F_TimeIntervalResampler3

I dont know if there are versions 1 or 2 of this element, as none of them are available in the \"Add\" Menu. I extracted this element from bh-HRV.

It has the parameter \"Output rate (Hz)\"
But what the parameter actually seems to do is:
\"Resample each incoming sample to this number of output samples\"

Example:
In a snippet sent by mail, I feed 4 samples per second in this element, I set it to \"Output rate (Hz): 8\".
It then outputs 8 samples 4 times per second.

This could be circumvented if known, but in this configuration the element cannot do what it's used for in heart rate processing: Resampling an uneven sampling rate (RR intervals) to an even one.

Important
If you modify the element, please do it as F_TimeIntervalResampler4 or something, in order not to break existing designs who work with the current bh-HRV design.

Marius

jarek



Joined: Oct 22, 2007
Posts: 1073

PostPosted: Jul 10, 2013 7:12 PM    Post subject:

See if this snippet works for you:

http://proatech.com/design/TimeIntervalResampler.bpd

This is the older version of time interval resampler with simpler interpolation. The TimeIntervaleResampler3 is supposed to do a better job with interpolation, but I am not sure now if it works as expected.
jarek



Joined: Oct 22, 2007
Posts: 1073

PostPosted: Jul 10, 2013 7:27 PM    Post subject:

More info about this kind of resampling can be found here:

http://www.medscape.com/viewarticle/536280_3
Reply to topic