
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."Parameter"
, directly.Geom-class
Parameter-class
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 DataLab