Description Usage Arguments Value Author(s)
View source: R/sampling_weight.R
Calculate weights for re-sampling with a temporal bias. For each station, obsrvations that have been preceded by extreme values the most recently, have higher weights (meaning that observations where extreme values were recently measured are more likely to be selected). Most recent extreme observation in the past at station L: w -> 1; no rare observations in the past at station L: w -> 0.
1 | get_time_wts(times, phi, rel.thr)
|
times |
a vector of time-stamps |
phi |
a vector of the relevance values of
|
rel.thr |
a relevance threshold above which an observation is considered relevant |
A vector of temporally-biased re-sampling weights, scaled to fit within range [0,1].
Mariana Oliveira
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.