| Exponential | R Documentation |
Exponential distribution in OOP way. Based on AbstractDist
See AbstractDist for generic methods
ROOPSD::AbstractDist -> Exponential
rate[double] rate of the exponential law
params[vector] params of the exponential law
ROOPSD::AbstractDist$cdf()ROOPSD::AbstractDist$density()ROOPSD::AbstractDist$diagnostic()ROOPSD::AbstractDist$fit()ROOPSD::AbstractDist$icdf()ROOPSD::AbstractDist$isf()ROOPSD::AbstractDist$logdensity()ROOPSD::AbstractDist$pdeltaCI()ROOPSD::AbstractDist$qdeltaCI()ROOPSD::AbstractDist$qgradient()ROOPSD::AbstractDist$rvs()ROOPSD::AbstractDist$sf()new()Create a new Exponential object.
Exponential$new(rate = 1)
rate[double] Rate of the exponential law
A new 'Exponential' object.
clone()The objects of this class are cloneable with this method.
Exponential$clone(deep = FALSE)
deepWhether to make a deep clone.
## Generate sample
rate = 0.5
expl = ROOPSD::Exponential$new( rate = rate )
X = expl$rvs( n = 1000 )
## And fit parameters
expl$fit(X)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.