inf_MSE | R Documentation |
Calculate the Multi-Scale (Sample) Entropy of a time series.
inf_MSE(
y,
summaryFunction = c("mean", "median", "min", "max")[1],
retainLength = FALSE,
m = 2,
r = 0.2,
D = NA,
fs = NULL,
transformBefore = TRUE,
removeTrend = c("no", "poly", "adaptive", "bridge")[1],
polyOrder = 1,
standardise = c("none", "mean.sd", "median.mad")[1],
adjustSumOrder = FALSE,
scaleMin = 1,
scaleMax = floor(NROW(y)/10),
scaleS = NA,
overlap = 0,
dataMin = 4,
relativeEntropy = FALSE,
doPlot = FALSE,
returnPlot = FALSE,
returnPLAW = FALSE,
returnInfo = FALSE,
silent = FALSE,
noTitle = FALSE,
tsName = "y"
)
y |
A numeric vector |
summaryFunction |
How should the data be summarized in the bins? Can be |
retainLength |
Return only the bin values ( |
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 |
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 |
standardise |
Standardise the series using |
adjustSumOrder |
Adjust the time series (summation or difference), based on the global scaling exponent, see e.g. Ihlen (2012) (default = |
scaleMin |
Minimum scale (in data points) to use for log-log regression (default = |
scaleMax |
Maximum scale (in data points) to use for log-log regression. This value will be ignored if |
scaleS |
If not |
overlap |
A number in |
relativeEntropy |
The relative entropy, SampEn / (-1 * log(1/length(y))) will be returned (default = |
doPlot |
Output the log-log scale versus fluctuation plot with linear fit by calling function |
returnPlot |
Return ggplot2 object (default = |
returnPLAW |
Return the power law data (default = |
returnInfo |
Return all the data used in SDA (default = |
silent |
Silent-ish mode (default = |
noTitle |
Do not generate a title (only the subtitle) (default = |
tsName |
Name of y added as a subtitle to the plot (default = |
MSE
The transformation settings (detrending and/or normalisation), transformBefore
will determine the value of the product r x D if D = NA
.
Other Information based complexity measures:
inf_SampEn()
y <- rnorm(100)
out <- inf_MSE(y, r=.5, scaleMin=1, scaleMax=10, returnInfo = TRUE, doPlot = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.