View source: R/internal_reorder_members.R
reorder_members | R Documentation |
Reorders the row entries of a matrix using a template based on order statistics
reorder_members(X, B)
X |
is a matrix where the columns correspond to multivariate forecasts. |
B |
is a matrix with common dimension to X, and contains order statsitics for reshuffling |
Each columns of X corresponds to an ensemble member. The order statistics in B are
generated from climatologically similar days to the forecast day.
This function is internal and used within schaake_shuffle()
a reshuffled version of matrix according the order statistics given in B.
Kate Saunders and Kirien Whan
X = matrix(c(2,1,3, 5,6,7), nrow = 2, byrow = TRUE)
B = matrix(c(2,1,3, 3,2,1), nrow = 2, byrow = TRUE)
reorder_members(X, B)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.