cdf | R Documentation |
returns the numeric values of the cumulative loss distribution ld
evaluated at x
, i.e., \textrm{Pr}(X ≤q x), where X\sim \textrm{ld}.
cdf(ld, x)
ld |
the loss distribution as obtained from |
x |
the point at which the distribution function shall be evaluated (must be a numeric; vectors are not supported yet) |
the function internally distinguishes discrete and continous disributions only in terms of rounding its argument to the largest integer less than x. Its value is obtained by numeric integration of the internal representation of the loss distribution (in the continuous case).
For discrete distributions, the function works on the internal probability mass function (which may be different from the empirical distribution in case that the loss distribution has been smoothed during its construction; see lossDistribution
).
an approximation for the probability Pr(ld<=x).
in its current version, cdf
does not vectorize, i.e., cannot be applied to vector arguments x
.
Stefan Rass
suitable inputs for this function are provided by lossDistribution
and mgss
.
cvss1base <- c(10,6.4,9,7.9,7.1,9) ld <- lossDistribution(cvss1base) cdf(ld, 4)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.