Description Usage Arguments Value References Examples
getFMMPeaks()
is used to estimate peak and trough times and signal values at those times for each component of the model. These parameters result to be useful in multiple applications.
1 | getFMMPeaks(objFMM, timePointsIn2pi = TRUE)
|
objFMM |
Object of class |
timePointsIn2pi |
|
A list with the following components is returned:
tpeakU |
a numeric vector with the time points at which the peak of each wave is estimated. |
tpeakL |
a numeric vector with the time points at which the trough of each wave is estimated. |
ZU |
a numeric vector with the estimated signal peak values of each wave. |
ZL |
a numeric vector with the estimated signal trough values of each wave. |
Rueda C, Larriba Y, Peddada SD (2019). Frequency Modulated Moebius Model Accurately Predicts Rhythmic Signals in Biological and Physical Sciences. Scientific reports, 9 (1), 18701. https://www.nature.com/articles/s41598-019-54569-1
1 2 3 4 5 6 7 8 9 10 | ## Generate example data:
fmm2.data <- generateFMM(0, rep(2, 2), c(1.5, 3.4), c(0.2, 2.3), c(0.1, 0.2),
plot = FALSE, outvalues = TRUE,
sigmaNoise = 0.5) # add a gaussian noise with sigma = 0.5
## Fit the FMM model with nback = 2 components
## fit is an object of S4 class 'FMM'
fit <- fitFMM(fmm2.data$y,timePoints = fmm2.data$t,nback = 2,
lengthAlphaGrid = 24,lengthOmegaGrid = 10)
getFMMPeaks(fit, timePointsIn2pi = TRUE) # times in the [0,2*pi] interval
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.