Description Usage Arguments Value Details Examples
Takes a numeric vector of daily snow changes, as well as a logical vector of possible indices to include in the Day-3 method, and returns the vector of the Day-3 method.
1 | calc_d3_method(d3_cands, dx)
|
d3_cands |
A logical vector of indices associated with dx. d3_cands(i) is TRUE if and only if dx(i) and dx(i + 2) are positive. |
dx |
A numeric vector of daily snow changes. |
A numeric vector of the Day-3 method. See details.
An observation of the Day-3 method consists of the sum of three consecutive elements of dx, the first and last of which must be positive, and the sum of the three observations must be positive. The d3_cands logical vector is TRUE when the first and third observations are positive. At the indices where d3_cands is TRUE, this function sums the dx(i), dx(i + 1), and dx(i + 2). If that sum is positive, it is added as a value of the Day-3 method. The function would then falsify d3_cands(i + 1) and d3_cands(i + 2) as an index of dx can be used in a sum only once.
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.