View source: R/RatioPredictableComponents.R
RatioPredictableComponents | R Documentation |
This function computes the ratio of predictable components (RPC; Eade et al., 2014).
RatioPredictableComponents(
exp,
obs,
time_dim = "year",
memb_dim = "member",
na.rm = FALSE,
ncores = NULL
)
exp |
A numerical array with, at least, 'time_dim' and 'memb_dim' dimensions. |
obs |
A numerical array with the same dimensions than 'exp' except the 'memb_dim' dimension. |
time_dim |
A character string indicating the name of the time dimension. The default value is 'year'. |
memb_dim |
A character string indicating the name of the member dimension. The default value is 'member'. |
na.rm |
A logical value indicating whether to remove NA values during the computation. The default value is FALSE. |
ncores |
An integer indicating the number of cores to use for parallel computation. The default value is NULL. |
An array of the ratio of the predictable components. it has the same dimensions as 'exp' except 'time_dim' and 'memb_dim' dimensions.
exp <- array(data = runif(600), dim = c(year = 15, member = 10, lat = 2, lon = 2))
obs <- array(data = runif(60), dim = c(year = 15, lat = 2, lon = 2))
RatioPredictableComponents(exp, obs)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.