Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

CalculateEnergyInPSDBands

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

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)

RHRV

Heart Rate Variability Analysis of ECG Data

v4.2.6
GPL-2
Authors
Leandro Rodriguez-Linares [aut, cre], Xose Vila [aut], Maria Jose Lado [aut], Arturo Mendez [aut], Abraham Otero [aut], Constantino Antonio Garcia [aut], Matti Lassila [ctb]
Initial release
2020-12-14

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.