dist_density: Create distributional object based on a specified density
Description
Creates a distributional object using a density specified as pair of vectors
giving (x, f(x)). The density is assumed to be piecewise linear between the
points provided, and 0 outside the range of x.
Usage
dist_density(x, density)
Arguments
x
Numerical vector of ordinates, or a list of such vectors.
density
Numerical vector of density values, or a list of such vectors.