Description Usage Arguments Value See Also
From a streamflow regime vector Qr
(i.e. a inter-annual average of
streamflow for each calendar day), it searches for the inflexion points in
a given time window p
. This functions (1) computes the derivative of
Qr
, (2) and smooth it using a rolling mean with a window n
.
1 2 3 4 5 6 | mct_inflexionpoints(
Qcum,
periods = c(100, 300),
n = 30L,
return_derivative = FALSE
)
|
Qcum |
numeric vector. Cumulative streamflow regime vector. |
If return_derivative
is TRUE, a list with 3 components is
returned:
data
: a data.frame containing two column: the derivative of Qr
(dQ) and its smoothed version (dQs).
inflexion_points
the indices of the two inflexions points found
If return_derivative
is FALSE, only the two inflexions points are
returned in a length 2 numeric vector.
mct_snowstorage
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.