KAPPA
provides the link between L-moments of a sample and the four parameter
kappa distribution.
f.kappa (x, xi, alfa, k, h)
F.kappa (x, xi, alfa, k, h)
invF.kappa (F, xi, alfa, k, h)
Lmom.kappa (xi, alfa, k, h)
par.kappa (lambda1, lambda2, tau3, tau4)
rand.kappa (numerosita, xi, alfa, k, h)
f.kappa
gives the density F.kappa
gives the distribution function invFkappa
gives
the quantile function Lmom.kappa
gives the L-moments (par.kappa
gives the parameters (xi
, alfa
, k
, h
), and rand.kappa
generates random deviates.
vector of quantiles
vector of kappa location parameters
vector of kappa scale parameters
vector of kappa third parameters
vector of kappa fourth parameters
vector of probabilities
vector of sample means
vector of L-variances
vector of L-CA (or L-skewness)
vector of L-kurtosis
numeric value indicating the length of the vector to be generated
Definition
Parameters (4):
Range of
Probability density function:
Cumulative distribution function:
Quantile function:
L-moments
L-moments are defined for
Here
Parameters
There are no simple expressions for the parameters in terms of the L-moments.
However they can be obtained with a numerical algorithm considering the formulations of optim
to minimize
Lmom.kappa
and par.kappa
accept input as vectors of equal length. In f.kappa
, F.kappa
,
invF.kappa
and rand.kappa
parameters (xi
, alfa
, k
, h
) must be atomic.
data(hydroSIMN)
annualflows
summary(annualflows)
x <- annualflows["dato"][,]
fac <- factor(annualflows["cod"][,])
split(x,fac)
camp <- split(x,fac)$"45"
ll <- Lmoments(camp)
parameters <- par.kappa(ll[1],ll[2],ll[4],ll[5])
f.kappa(1800,parameters$xi,parameters$alfa,parameters$k,parameters$h)
F.kappa(1800,parameters$xi,parameters$alfa,parameters$k,parameters$h)
invF.kappa(0.771088,parameters$xi,parameters$alfa,parameters$k,parameters$h)
Lmom.kappa(parameters$xi,parameters$alfa,parameters$k,parameters$h)
rand.kappa(100,parameters$xi,parameters$alfa,parameters$k,parameters$h)
Rll <- regionalLmoments(x,fac); Rll
parameters <- par.kappa(Rll[1],Rll[2],Rll[4],Rll[5])
Lmom.kappa(parameters$xi,parameters$alfa,parameters$k,parameters$h)
Run the code above in your browser using DataLab