rp | R Documentation |
Create a Distance Matrix
rp(
y1,
y2 = NULL,
emDim = 1,
emLag = 1,
emRad = NULL,
theiler = NA,
to.ts = NULL,
order.by = NULL,
to.sparse = TRUE,
weighted = FALSE,
weightedBy = "si",
method = c("Euclidean", "max", "SBD")[1],
rescaleDist = c("none", "maxDist", "meanDist")[1],
targetValue = 0.05,
chromatic = FALSE,
returnMeasures = FALSE,
doPlot = FALSE,
doEmbed = TRUE,
silent = TRUE,
...
)
y1 |
A numeric vector or time series |
y2 |
A numeric vector or time series for cross recurrence |
emDim |
The embedding dimensions |
emLag |
The embedding lag |
emRad |
The threshold (emRad) to apply to the distance matrix to create a binary or weighted matrix. If |
theiler |
Use a
|
to.ts |
Should |
order.by |
If |
to.sparse |
Should sparse matrices be used? |
weighted |
If |
weightedBy |
After setting values smaller than |
method |
Distance measure to use. Any option that is valid for argument |
rescaleDist |
Should the distance matrix be rescaled? Options are "none", "maxDist" to create a unit scale, "meanScale" to creat z-scores based on the mean distance. (default = |
targetValue |
A value passed to |
chromatic |
Perform a chromatic RQA. This assumes the recurring values represent the labels of an unordered categorical variable (default = |
returnMeasures |
Should the output of |
doPlot |
Plot the matrix by calling |
doEmbed |
If |
silent |
Silent-ish mode |
... |
Any parameters to pass to |
A (Coss-) Recurrence matrix with attributes:
emdims1
and emdims2
- A matrix of surrogate dimensions
emdims1.name
and emdims2.name
- Names of surrogate dimensions
method
and call
- The distance method
used by proxy::dist()
weighted
- Whether a weighted matrix is returned
emDim
, emLag
and emRad
- The embedding parameters
AUTO
- Whether the matrix represents AUTO recurrence
The calculation of the (C)RQA measures in casnet can be different from other packages. For example, depending on the value of theiler
the main diagonal can be included or excluded from the calculations, whereas some software will always include the diagonal.
Other Distance matrix operations (recurrence plot):
bandReplace()
,
createCorridor()
,
mat_di2bi()
,
mat_di2ch()
,
mat_di2we()
,
mat_hamming()
,
rp_lineDist()
,
rp_nzdiags()
,
rp_plot()
,
rp_size()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.