| analyze {tsmp} | R Documentation |
Runs an appropriate workflow based on the parameters passed in.
Description
The goal of this function is to compute all fundamental algorithms on the provided time series data. See details for more information.
Usage
analyze(
ts,
windows = NULL,
query = NULL,
sample_pct = 1,
threshold = 0.98,
n_jobs = 1L
)
Arguments
ts |
a |
windows |
an |
query |
a |
sample_pct |
a |
threshold |
a |
n_jobs |
an |
Details
For now the following is computed:
Matrix Profile - exact or approximate based on
sample_pctgiven that a singlewindowsis provided. By default is the exact algorithm;Top 3 Motifs;
Top 3 Discords;
Plot Matrix Profile, Motifs and Discords.
When windows is not provided or more than a single window is provided,
the Pan-Matrix Profile is computed:
Compute the upper bound when a
thresholdis provided (it is, by default);Compute Pan-Matrix Profile for all
windowsprovided, below the upper bound, or a default range when nowindowsis provided;Top Motifs;
Top Discords;
Plot Pan-Matrix Profile, motifs and discords.
Value
The appropriate Matrix Profile or Pan-Matrix Profile profile object and also plots the graphics.
References
Website: http://www.cs.ucr.edu/~eamonn/MatrixProfile.html
See Also
Other Main API:
compute(),
discords(),
motifs(),
visualize()
Examples
# Matrix Profile
result <- analyze(mp_toy_data$data[, 1], 80)
# Pan Matrix Profile
result <- analyze(mp_toy_data$data[, 1])