Distribution function

Description

Calculate the value at x of the distribution function associated with the intensity/hazard function probived through int.

Usage

1
Dist(x, int, ...)

Arguments

x

the value to evaluate the distribution function at.

int

vectorized function specifying the intensity/hazard function

...

arguments to be passed to the integrate function

Value

A number between 0 and 1 inclusive, that gives the value of the distribution function at the specified x value.

Author(s)

Feng Chen <feng.chen@unsw.edu.au>

Examples

1
2
curve(Dist(x,int=function(x)3*x^2),0,5)
curve(pweibull(x,shape=3),0,5,add=TRUE,col=3,lty=3)