View source: R/get_quantiles.R
get_quantiles | R Documentation |
Creates a matrix of sampled quantiles for drawing new ensemble members
get_quantiles(n_members, method, n_reps = 1)
n_members |
number of members in the ensemble. This must be an integer. |
method |
character string corresponding to the desired quantile sampling method
and must be one of |
n_reps |
number of replicates of the function corresponding to the dimension of the forecast |
If the method
is 'R'
then the quantiles are randomly sampled.
If the method
is 'Q'
then the sampled quantiles are equally spaced.
If the method
is 'QH'
then the sampled quantiles are equally spaced using a different sampling scheme.
If the method
is 'QJ'
then the sampled quantiles are equally spaced and jittered.
a matrix of sample quantiles where the number of rows corresponds to n_reps and the number of columns corresponds to n_members
Kate Saunders and Kirien Whan
run_shuffle_template
# Examples of the different sampling methods
get_quantiles(n_members = 3, method = "R")
get_quantiles(n_members = 4, method = "Q")
get_quantiles(n_members = 4, method = "QJ")
get_quantiles(n_members = 5, method = "QH")
# Examples showing difference in methods for repeat sampling
get_quantiles(n_members = 3, method = "R", n_reps = 2)
get_quantiles(n_members = 3, method = "Q", n_reps = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.