dot-spei_daily.sci: Utils function to compute the SPI or SPEI using a vector....

.spei_daily.sciR Documentation

Utils function to compute the SPI or SPEI using a vector. This function is based on the code presented in the SCI package

Description

Utils function to compute the SPI or SPEI using a vector. This function is based on the code presented in the SCI package

Usage

.spei_daily.sci(params_matrix, P_matrix, pze_matrix, trgt, distribution, dates)

Arguments

params_matrix

matrix obtained from the parameters list

P_matrix

matrix of the required P layer

pze_matrix

matrix of the probability of zero layer

trgt

The day for which the function will be computed. The default is NULL, indicating that the last day of the data will be selected.

distribution

Character value indicating the name of the distribution function to be used for computing the SPI (one of 'log-Logistic', 'Gamma' and 'PearsonIII'). Defaults to 'log-Logistic' for SPEI.


obaezvil/SpatIndex documentation built on Aug. 9, 2024, 3:42 p.m.