AnalyzePowerBandsByEpisodes: Analyze power band by episodes

Description Usage Arguments Value Examples

Description

Analyzes the ULF, VLF, LF and HF bands from a given indexFreqAnalysis allowing to evaluate the application of a desired function inside and outside each episode.

Usage

1
2
3
AnalyzePowerBandsByEpisodes(HRVData,
  indexFreqAnalysis = length(HRVData$FreqAnalysis), Tag = "",
  verbose = NULL, func, ...)

Arguments

HRVData

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

indexFreqAnalysis

Integer value denoting which frequency analysis is going to be analyzed using func. Default: 1

Tag

Type of episode

verbose

Deprecated argument maintained for compatibility, use SetVerbose() instead

func

Function to be applied to each power band inside and outside episodes

...

Optional arguments for func.

Value

Returns a list with two objects, that is, the values of the application of the selected function inside ("resultIn") and outside ("resultOut") episodes in the given indexFreqAnalysis. Each of these list has another set of lists: the "ULF", "VLF", "LF" and "HF" lists.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
## Not run: 
hrv.data = CreateHRVData()
hrv.data = SetVerbose(hrv.data, TRUE)
hrv.data = LoadBeat(hrv.data, fileType = "WFDB", "a03", RecordPath ="beatsFolder/", 
                    annotator = "qrs")
                    hrv.data = LoadApneaWFDB(hrv.data, RecordName="a03",Tag="Apnea",
                                             RecordPath="beatsFolder/")
hrv.data = BuildNIHR(hrv.data)
hrv.data = InterpolateNIHR (hrv.data, freqhr = 4)
hrv.data = CreateFreqAnalysis(hrv.data)
hrv.data = CalculatePowerBand( hrv.data , indexFreqAnalysis= 1,
                               type = "wavelet", wavelet = "la8",
                                bandtolerance = 0.01, relative = FALSE)
results = AnalyzePowerBandsByEpisodes(hrv.data,indexFreqAnalysis=1,
                                       Tag="Apnea",func=mean)
## End(Not run)


Search within the RHRV package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.