powered by
Class disc is used to represent an arbitrary univariate discrete distribution with a finite number of support points.
disc
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
# S3 method for disc print(x, ...)
an object of class disc.
arguments passed on to function print.
print
Yong Wang <yongwang@auckland.ac.nz>
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