In case both prob
and threshold
are set to
NULL
, the function returns the input x
without modification.
If prob
is set, a matrix with the number of occurrences per class for
a given quantile of the full distribution (e.g. temperature above/below the
median). If threshold
is set, the classes are defined based on the
absolute value (e.g. temperature above/below 13 deg. C). Multiple classes
are
Only certain formats of threshold
and prob
are supported.
prob
has to be a vector with percentile thresholds separating the
different classes. threshold
can be a vector, matrix or array with
the first entry corresponding to the different classes, and the last to the
different ensemble members (if present). Thereby, time/forecast varying
thresholds can potentially be supplied (although I am not sure this is
useful or needed).
If ref.ind
is specified, only the specified indices of the input
variables are used to estimate the percentile thresholds (prob
). If
used with threshold
, or without anything, ref.ind
has no effect.
If multi.model = TRUE
, the relative thresholds supplied by
prob
are ensemble member specific, i.e. are estimated for each
ensemble member separately. This is in particular applicable for
multi-model ensembles with model dependent biases.