is.simp.emd {DecomposeR} | R Documentation |
Tests for simplified EMD
Description
Tests whether each column of a matrix is an alternation of -minima zero-crossing maxima zero-crossing-
Usage
is.simp.emd(xy)
Arguments
xy |
a vector or matrix of values to test |
Examples
xytest1 <- c(0.5, 1,-1,-0.85,-0.5,-1,-0.5,-1,1,0.5,0,-1,0,
1,-1,0,1,2,-2,1,2,1,3,0,-1,-1,3,0)
xytest2 <- c(0, 1,-1,-0.85,-0.5,-1,-0.5,-1,1,0.5,0,0,
1,1,1,1,2,-2,1,2,1,3,0,-1,-1,3,0)
dat1 <- simp.emd(m = xytest1, dt = 1:length(xytest1))
dat2 <- simp.emd(m = xytest2, dt = 1:length(xytest2))
is.simp.emd(dat1$xy)
is.simp.emd(dat2$xy)
# There is a problem when two maxima or minima are separeted by a point at 0
# that does not cross any further, creating a false simplified IMF. THis is
# not considered as a simplified IMF by this function. However this scenario
# should be very rare in EMDs, but you never really know.
[Package DecomposeR version 1.0.6 Index]