10-07-2010 04:51 AM
Hi,
Can anyone advise on the how the HF and LF are calculated in the HRV calculations? I had the same RR values put into Matlab and the HF and LF results are different. Thank you.
10-07-2010 09:46 PM
Hey,
If you have the source codes, please check the core VI. I think some difference is right as the spectrum estimation algorithm is slightly different from Matlab. You should comapre the LF/HF ratio. That has not unit.
Thanks!
ZJ Gu
10-07-2010 10:09 PM
Yes I had gone through the source code. Please advise if I have missed any point here:
1. NFFT - 1024
2. Take each point and calculate the magnitude square
3. Using 1024 bin as 1Hz, allocate the frequency for each band (i.e. LF and HF)
4. Add up all the magnitude square obtained for each of the points in the respective frequency band to give LF and HF value
Yes, I have also compared the ratio and they are very different too. Please advsie. Thanks.
10-08-2010 04:46 AM
You are right. And you could change those settings. There is one important stage you didn't mention - detrend. RR interval signal may have very strong power around 0Hz, we should remove it first. In startup kit, we use wavelet detrend, I think.
What do you mean by very different ? Could you please attach the RR interval file?
Thanks!
ZJ Gu.