View source: R/Analyses_functions_1.R
X_max | R Documentation |
This function computes the maximum of a time series for the provided time interval or its sub-interval.
X_max(X, subI = NULL, plot = FALSE, vline = FALSE, hline = FALSE)
X |
Data frame where the first column is a numeric time sequence |
subI |
Time sub-interval is a vector where the lower bound is the first element and upper bound is the second. Optional: If provided maximum of the sub-interval is returned, otherwise the whole time sequence is considered. |
plot |
Logical: If |
vline |
Logical: If |
hline |
Logical: If |
A list of numeric vector(s). The first element in the vector is the corresponding t
value and second the
maximum of the time series.
X_min
t <- seq(0, 1, length = 100)
TS <- data.frame("t" = t, "X(t)" = rnorm(100))
X_max(TS, subI = c(0.5, 0.8), plot = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.