the moment of given order k is computed by numeric integration or summation (in case of discrete distributions)
moment(ld, k)
the loss distribution as obtained from lossDistribution
or mgss
.
the order of the moment (must be an integer
the k-th order moment of the given loss distribution
# NOT RUN {
cvss1base <- c(10,6.4,9,7.9,7.1,9)
ld <- lossDistribution(cvss1base)
cdf(ld, 4)
# }
Run the code above in your browser using DataLab