inf_SampEn | R Documentation |
Sample Entropy
inf_SampEn(
y,
m = 2,
r = 0.2,
D = NA,
fs = NULL,
standardise = c("none", "mean.sd", "median.mad")[1],
transformBefore = TRUE,
removeTrend = c("no", "poly", "adaptive", "bridge")[1],
polyOrder = 1,
relativeEntropy = FALSE,
returnInfo = FALSE,
silent = FALSE
)
y |
A numeric vector or time series object. |
m |
The size of the window in which tho evaluate whether a pattern repeats (default = |
r |
A factor that will determine the threshold for similarity of values, calculated as r x D (default = |
D |
Commonly the standard deviation of the time series, the similarity threshold will be calculated as r x D. Note that if the series is detrended and/or standardised and |
fs |
Sample rate |
standardise |
Standardise the series using |
transformBefore |
Detrend/standardise before coarse graining. If set to |
removeTrend |
Method to use for global detrending (default = |
polyOrder |
Order of global polynomial trend to remove if |
relativeEntropy |
The relative entropy, SampEn / (-1 * log(1/length(y))) will be returned (default = |
returnInfo |
Return all the data used in SDA (default = |
silent |
Silent-ish mode (default = |
The sample entropy (SampEn) of the time series y.
info_MSE
Other Information based complexity measures:
inf_MSE()
y <- rnorm(100)
# Similarity threshold is r x D = 0.2 * sd(y)
inf_SampEn(y)
# Similarity threshold is r = 0.2
inf_SampEn(y, D = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.