CalculateSPDBandsEnergy

Description

Calculates the Energy in the bands of the Power Spectral Density (PSD).

Usage

1
2
3
4
CalculateEnergyInPSDBands(HRVData,
  indexFreqAnalysis = length(HRVData$FreqAnalysis), ULFmin = 0,
  ULFmax = 0.03, VLFmin = 0.03, VLFmax = 0.05, LFmin = 0.05,
  LFmax = 0.15, HFmin = 0.15, HFmax = 0.4)

Arguments

HRVData

Data structure that stores the beats register and information related to it.

indexFreqAnalysis

An integer referencing the data structure that contains the PSD analysis.

ULFmin

Lower limit ULF band used for distinguish the ULF band.

ULFmax

Upper limit ULF band used for distinguish the ULF band.

VLFmin

Lower limit VLF band.

VLFmax

Upper limit VLF band.

LFmin

Lower limit LF band.

LFmax

Upper limit LF band.

HFmin

Lower limit HF band.

HFmax

Upper limit HF band.

Value

A vector containing the energy of the ULF, VLF, LF and HF bands in the PSD.

See Also

PlotPSD, CalculatePSD.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
data(HRVData)
HRVData=BuildNIHR(HRVData)
HRVData=FilterNIHR(HRVData)
# Frequency analysis requires interpolated data (except Lomb)
HRVData=InterpolateNIHR(HRVData)
HRVData=CreateFreqAnalysis(HRVData)
HRVData=CalculatePSD(HRVData,1,"pgram",doPlot = F)
# get Energy in the default ULF, VLF and LF frequency bands.
# We modify the limits for the HF band
CalculateEnergyInPSDBands(HRVData, 1, HFmin = 0.15, HFmax = 0.3) 

## End(Not run)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.