new("ExpParameter", rate)
.
Usually an object of this class is not needed on its own, it is generated automatically when an object of the class Exp
is instantiated."Parameter"
, directly.Exp-class
DExp-class
Parameter-class
W <- new("ExpParameter", rate = 1)
rate(W) # rate of this distribution is 1.
rate(W) <- 2 # rate of this distribution is now 2.
Run the code above in your browser using DataLab