tsEvaComputeTimeRP {RtsEva} | R Documentation |
tsEvaComputeTimeRP
is a function that calculates the return period
of a given event for GEV and GPD distributions at a given time index.
tsEvaComputeTimeRP(params, RPiGEV, RPiGPD)
params |
A data frame containing the following parameters:
|
RPiGEV |
Value of RP for the GEV distribution. |
RPiGPD |
Value of RP for the GPD distribution. |
A vector with the calculated return period for GEV and GPD distributions.
#Parameter vector:
params <- t(data.frame(epsilonGEV = 0.2, muGEV = 3, sigmaGEV = 1,
epsilonGPD = 0.2, thresholdGPD = 3, sigmaGPD = 1,
nPeaks = 70, SampleTimeHorizon = 70))
tsEvaComputeTimeRP(params, RPiGEV = 10, RPiGPD = 10)