reorder_members: Reorders ensemble members

View source: R/internal_reorder_members.R

reorder_membersR Documentation

Reorders ensemble members

Description

Reorders the row entries of a matrix using a template based on order statistics

Usage

reorder_members(X, B)

Arguments

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

Details

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()

Value

a reshuffled version of matrix according the order statistics given in B.

Author(s)

Kate Saunders and Kirien Whan

Examples


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)


katerobsau/depPPR documentation built on July 2, 2023, 10:48 p.m.