Description Usage Arguments Details Value Author(s) References See Also Examples
Implements ASTM E1049-85 rainflow cycle counting to determine the amplitude and mean of each cycle within a vector (or time series) of alternating min/max local extrema.
1 | CountCycles(x)
|
x |
Object of class |
If x
is class numeric
, the vector should strictly
alternate min/max. If it does not, CountCycles()
will automatically
remove any repeated min or max values and issue a warning.
Object of type rainflow
: a data frame with the number of cycles
for each amplitude/mean combination.
Addison Klinke, agk38@case.edu
https://www.astm.org/Standards/E1049.htm
\insertRefdowling_mechanical_2013rainflow
FindPeaks, CountCycles.numeric, CountCycles.peaks
1 2 3 4 5 6 7 8 9 10 11 12 | # For class 'numeric' (example from ASTM E1049-85 Fig. 6)
astm <- c(-2, 1, -3, 5, -1, 3, -4, 4, -2)
r <- CountCycles(astm)
summary(r)
plot(r)
# For class 'peaks' (using package weather data)
data(weather)
p <- FindPeaks(weather$temp, R = 1.1, smooth = TRUE, window = 120)
r <- CountCycles(p)
summary(r)
plot(r)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.