Cumulative Distribution Function From Kernel Density Estimate
Given a kernel estimate of a probability density, compute the corresponding cumulative distribution function.
CDF(f, ...) ## S3 method for class 'density' CDF(f, ..., warn = TRUE)
f |
Density estimate (object of class |
... |
Ignored. |
warn |
Logical value indicating whether to issue a warning if the
density estimate |
CDF
is generic, with a method for class "density"
.
This calculates the cumulative distribution function
whose probability density has been estimated and stored in the object
f
. The object f
must belong to the class "density"
,
and would typically have been obtained from a call to the function
density
.
A function, which can be applied to any numeric value or vector of values.
Adrian Baddeley Adrian.Baddeley@curtin.edu.au, Rolf Turner r.turner@auckland.ac.nz and Ege Rubak rubak@math.aau.dk
b <- density(runif(10)) f <- CDF(b) f(0.5) plot(f)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.