powered by
Evaluate the density function corresponding to the specified intensity/hazard function int.
int
Dens(x, int, ...)
the value at which to evaluate the density function
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
# NOT RUN { 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) # }
Run the code above in your browser using DataLab