distcrete(name, interval, ..., w = 0.5, anchor = 0)
Arguments
name
The name of a distribution function (e.g.,
norm, gamma). The distribution must have a cdf
function (e.g., pnorm) and a quantile function (e.g.,
qnorm) defined.
interval
The interval to discretise the interval onto.
...
Parameters to cdf. Can be matched positionally
or by name.
w
How to weight the endpoints; must be between 0 and 1.
If 0.5 then integration happens centred around the interval, if
0 floor, if 1 then ceiling.