Description Usage Arguments Value Author(s) References Examples
Compress a vector (or time series) by extracting only the important local extrema (see references for algorithm implemented).
1 |
a |
Vector of measured values (can be time series or not). |
R |
Numeric value greater than 1 indicating the threshold for important local extrema. Larger values mean fewer peaks are selected (higher compression ratio). Try starting with 1.1 if you are unsure what value to use. |
smooth |
Logical, should a moving average filter be applied before extracting
local extrema? If |
window |
Numeric, if |
thres |
Numeric value indicating that points in |
na.pad |
Logical, should the compressed ( |
Object of class peaks
, a list containing:
indices |
Locations of detected peaks. |
peaks |
y-values for detected peaks. |
data |
Original data passed to this function. |
smooth |
If |
window |
If |
compr |
Compression ratio (1 minus number of peaks detected / length of original vector). |
corr |
Pearson correlation coefficient between original and compressed vectors. |
diff |
Mean difference between original and compressed vectors. |
Addison Klinke, agk38@case.edu
fink_indexing_2004rainflow
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.