Sums one or several IMFs and returns a
mimf object. Useful for
when several IMFs have similar frequencies.
List of vector giving the IMFs to be summed. Each vector gives
the IMFs to be summed into a single IMF. Elements of
Character vector giving names ti the new IMFS. If NULL default names are generated.
When noise variables are added to the signal to perform the NA-MEMD,
it often results in a too large number of IMFs with very similar
combine.mimf allows gathering htese IMFs into
a single one. The IMFs to comnine should be carefully selected by
checking their mean period and examining the plot.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
library(dlnm) # Decompose both temperature and relative humidity with NA-MEMD # Adding two noise variables X <- chicagoNMMAPS[,c("temp", "rhum")] set.seed(123) mimfs <- memd(X, l = 2) # Takes a couple of minutes # Plot resulting IMFs plot(mimfs) # Sum MIMFs with similar frequencies cmimfs <- combine.mimf(mimfs, list(10:11, 12:13), new.names = c("C10", "C11")) plot(cmimfs)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.