Dens | R Documentation |
Evaluate the density function corresponding to the specified
intensity/hazard function int
.
Dens(x, int, ...)
x |
the value at which to evaluate the density function |
int |
the intensity/hazard function. Has to be vectorized. |
... |
other arguments to be passed to the underlying integrator |
A numerical value or vector giving the value(s) of the density function
Relies on R's integrate
function
Feng Chen <feng.chen@unsw.edu.au>
set.seed(1); dat <- RND(1000,int=function(x)3*x^2)
hist(dat,freq=FALSE); curve(Dens(x,int=function(x)3*x^2),add=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.