fd_boxcount2D | R Documentation |
2D Boxcount for 1D signal
fd_boxcount2D(
y = NA,
unitSquare = TRUE,
image2D = NA,
resolution = 1,
removeTrend = FALSE,
polyOrder = 1,
standardise = c("none", "mean.sd", "median.mad")[1],
adjustSumOrder = FALSE,
scaleMin = 0,
scaleMax = floor(log2(NROW(y) * resolution)),
scaleS = NA,
dataMin = 2^(scaleMin + 1),
maxData = 2^(scaleMax - 1),
doPlot = FALSE,
returnPlot = FALSE,
returnPLAW = FALSE,
returnInfo = FALSE,
returnLocalScaling = FALSE,
silent = FALSE,
noTitle = FALSE,
tsName = "y"
)
y |
A numeric vector or time series object. |
unitSquare |
Create unit square image of |
image2D |
A matrix representing a 2D image, argument |
resolution |
The resolution used to embed the timeseries in 2D, a factor by which the dimensions the matrix will be multiplied (default = |
removeTrend |
If |
polyOrder |
Order of polynomial trend to remove if |
standardise |
Standardise |
adjustSumOrder |
Adjust the order of the time series (by summation or differencing), based on the global scaling exponent, see e.g. https://www.frontiersin.org/files/Articles/23948/fphys-03-00141-r2/image_m/fphys-03-00141-t001.jpgIhlen (2012) (default = 'FALSE“) |
scaleMin |
Minimium scale value (as |
scaleMax |
Maximum scale value (as |
scaleS |
If not |
dataMin |
Minimum number of time/data points inside a box for it to be included in the slope estimation (default = |
maxData |
Maximum number of time/data points inside a box for it to be included in the slope estimation (default = |
doPlot |
Return the log-log scale versus bulk plot with linear fit (default = |
returnPlot |
Return ggplot2 object (default = |
returnPLAW |
Return the power law data (default = |
returnInfo |
Return all the data used in DFA (default = |
returnLocalScaling |
Return estimates of FD for each scale |
silent |
Silent-ish mode (default = |
noTitle |
Do not generate a title (only the subtitle) |
tsName |
Name of y added as a subtitle to the plot (default = |
The boxcount fractal dimension and the 'local' boxcount fractal dimension
This function was inspired by the Matlab
function boxcount.m
written by F. Moisy. Fred Hasselman
adapted the function for R
for the purpose of the unit square boxcount analysis for 1D time series. The original Matlab toolbox has more options and contains more functions (e.g. 1D
and 3D
boxcount).
fd_boxcount2D(y = rnorm(100))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.