SCM

Forum: open-discussion

Monitor Forum | Start New Thread Start New Thread
RE: Calculating Power Bands within Episodes [ Reply ]
By: Lee Verweel on 2014-11-25 23:43
[forum:41680]
Hi Constantino,

Not a problem! Thank you very much for your reply. I will try this.


All the best,

-Lee

RE: Calculating Power Bands within Episodes [ Reply ]
By: Constantino Antonio on 2014-11-21 15:25
[forum:41670]
Dear Audrey Lim,

Yes! The SplitPowerBandByEpisodes function also uses the Tag parameter in order to select the episode type.

Kind regards

RE: Calculating Power Bands within Episodes [ Reply ]
By: Audrey Lim on 2014-11-21 14:54
[forum:41669]
Dear Constantino Antonio,

I was just wondering - is it possible to calculate the power bands based on the names of episodes, assuming there is more than one type of episode defined in the data? I know this can be done for the time domain analysis by using the "Tag" function - however, I was unable to do so in the frequency analysis.

Thank you!

RE: Calculating Power Bands within Episodes [ Reply ]
By: Constantino Antonio on 2014-11-21 09:41
[forum:41667]
Dear Lee Verweel,

First at all, sorry for the delay in answering you.

You may find interesting our tutorial about RHRV: http://rhrv.r-forge.r-project.org/tutorial/tutorial.pdf . Concretely, you may read about analyzing different episodes in section 5.3.5. As a quick summary:

1.- Create a frequency analysis and change the default bands using ULFmin, ULFmax, VLFmin, ...
R> hrv.data = CalculatePowerBand( hrv.data , indexFreqAnalysis= 1,
size = 300, shift = 30, sizesp = 2048, type = "fourier",
ULFmin = 0, ULFmax = 0.03, VLFmin = 0.03, VLFmax = 0.05,
LFmin = 0.05, LFmax = 0.15, HFmin = 0.15, HFmax = 0.4 )
2.- Split power bands by episodes:
R> splitting.data = SplitPowerBandByEpisodes(hrv.data,
indexFreqAnalysis = 1)
3.- Compare values inside and outside the episodes. For example, we can compare the mean in the ULF band:
R> mean(splitting.data$InEpisodes$LF)
R> mean(splitting.data$OutEpisodes$LF)

We hope this helps you!
Kind regards!


RE: Calculating Power Bands within Episodes [ Reply ]
By: Lee Verweel on 2014-11-19 22:01
[forum:41661]
Just a follow up. I included a script in my previous post that I'm working off of.

Thanks again!

Calculating Power Bands within Episodes [ Reply ]
By: Lee Verweel on 2014-11-19 21:57
[forum:41660]

RHRV (142 By Episode).R (13) downloads
Hi guys,

I'm a little stuck using the RHRV program and I'm hoping I can get a nudge in the right direction!

I'm trying to analyze the first 15 minutes of a 24 hour recording of hrv.

I've created an episode for the first 15 minutes and I've figured out how to calculate the time series of this episode through this forum, but I can't figure out how to do the same thing for the frequency/power analysis.

Is there a way to analyze the separate power bands within an episode, with ULF, VLF, LF and HF that all follow different intervals than the default set by the RHRV program?

I've gotten as far as splitting the power band after calculating the different frequencies, however, I can't seem to figure out how to calculate ULV, VLF, LF and HF within a single episode. SInce I am using different band widths I am wondering if I need to create a different function to complete this task?


Thanks everyone!

I really appreciate all time and help!
-Lee

Thanks to:
Vienna University of Economics and Business Powered By FusionForge