distr (version 1.5)

GeomParameter-class: Class "GeomParameter"

Description

The parameter of a geometric distribution, used by Geom-class

Arguments

Objects from the Class

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

Extends

Class "Parameter", directly.

See Also

Geom-class Parameter-class

Examples

Run this code
W=new("GeomParameter",prob=0.5)
prob(W) # prob of this distribution is 0.5.
prob(W)=0.4 # prob of this distribution is now 0.4.

Run the code above in your browser using DataCamp Workspace