distr (version 1.7)

BinomParameter-class: Class "BinomParameter"

Description

The parameter of a binomial distribution, used by Binom-class

Arguments

Objects from the Class

Objects can be created by calls of the form new("BinomParameter", prob, size). Usually an object of this class is not needed on its own, it is generated automatically when an object of the class Binom is instantiated.

Extends

Class "Parameter", directly.

See Also

Binom-class Parameter-class

Examples

Run this code
W=new("BinomParameter",prob=0.5,size=1)
size(W) # size of this distribution is 1.
size(W)=2 # size of this distribution is now 2.

Run the code above in your browser using DataCamp Workspace