TS.stats: calculating statistics of a time series needed for parameter estimation
Description
TS.stats calculates statistics of a given time series x at given accumulation
levels acc.vals. The calculated statistics are the mean of the first accumulation level,
the variance, auto-covariance lag-1 and the probability of zero rainfall of all given accumulation
levels of the time series. These statistics are needed for estimating the BLRPM parameters.
Usage
TS.stats(x,acc.vals)
Arguments
x
vector of a time series
acc.vals
vector of accumulation levels, first value should be 1
Value
stats TS.stats returns a vector of statistics calculated at given accumulation levels