Learn R Programming

nspmix (version 1.5-0)

disc: Class `disc'

Description

Class disc is used to represent an arbitrary univariate discrete distribution with a finite number of support points.

Usage

disc(pt, pr=1)
# S3 method for disc
print(x, ...)

Arguments

pt

a numeric vector for support points.

pr

a numeric vector for probability values at the support points.

x

an object of class disc.

...

arguments passed on to function print.

Details

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.

See Also

cnm, cnmms.

Examples

Run this code
# NOT RUN {

(d = disc(pt=c(0,4), pr=c(0.3,0.7)))

# }

Run the code above in your browser using DataLab