CalculateEnergyInPSDBands {RHRV}R Documentation

CalculateSPDBandsEnergy

Description

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

Usage

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

## 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)

[Package RHRV version 4.2.7 Index]