Description Usage Arguments Details
View source: R/normalizeresiduals.R
A vector of residuals in a single grid cell must be normalized for the fldgen algorithm to work properly. This function takes a matrix of residuals (each grid cell is a column, T or P), calculates the quantiles of each residual, and maps to the corresponding value in a normal distribution.
1 | normalize.resids(inputresids, empiricalcdf, len = NULL)
|
inputresids |
Matrix of the original, input residuals for each grid cell (columns) |
empiricalcdf |
List of the empirical cdf functions for each grid cell. |
len |
Maximum length of the time series to read. If the data read is longer, it will be trimmed. (Default: read entire time series, regardless of length.) |
The output will be a list with four fields:
Matrix of the original, input residuals for each grid cell.
List of the empirical cdf functions for each grid cell.
Matrix of the quantiles of each input residual.
Matrix of the new, normally distributed residuals.
Conventionally, we refer to the output list as quantilemapping
.
Notably, any other function with a quantilemapping
argument is
expecting one of these structures.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.