powered by
disc
Class disc is used to represent an arbitrary univariate discrete distribution with a finite number of support points.
disc(pt, pr=1, sort=TRUE, collapse=FALSE)
a numeric vector for support points.
a numeric vector for probability values at the support points.
=TRUE, by default. If TRUE, support points are sorted (in increasing order).
=TRUE, by default. If TRUE, identical support points are collapsed, with their masses aggregated.
Yong Wang <yongwang@auckland.ac.nz>
Function disc creates an object of class disc, given the support points and probability values at these points.
Function print.disc prints the discrete distribution.
print.disc
cnm, cnmms.
cnm
cnmms
(d = disc(pt=c(0,4), pr=c(0.3,0.7)))
Run the code above in your browser using DataLab