Description Usage Arguments Details Value References Examples
View source: R/entropy_SlidingWindows.R
This function computes approximate entropy of a univariate time series with sliding windows approach.
1 | entropy.SlidingWindows(y, w = 99, k = 4, dim = 2, r = 0.5, lag = 1)
|
y |
A vector containing univariate time series. |
w |
An integer value indicating the window size w < length(y). If w = length(y), will be computed the function will not slide. |
k |
An integer value indicating the boundary of the division (N/k). The smallest value of k is 4. |
dim |
The dimension of given time series. See TSEntropies package. |
r |
The radius of searched areas. See TSEntropies package. |
lag |
The downsampling. See TSEntropies package. |
This function return the list with time series sliding windows.
A list contaning "w", "ApEn", "FastApEn".
Pincus, S.M. (1991). Approximate entropy as a measure of system complexity. Proc. Natl. Acad. Sci. USA, Vol. 88, pp. 2297–2301. doi="doi.org/10.1073/pnas.88.6.2297".
1 2 | y <- rnorm(100)
entropy.SlidingWindows(y, w=99, k=4, dim=2, r=.2,lag=1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.