Gamma {ROOPSD} | R Documentation |
Gamma
Description
Gamma distribution in OOP way. Based on AbstractDist
Details
See AbstractDist for generic methods
Super class
ROOPSD::AbstractDist
-> Gamma
Active bindings
shape
[double] shape of the gamma law
scale
[double] scale of the gamma law
params
[vector] params of the gamma law
Methods
Public methods
Inherited methods
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()
Method new()
Create a new Gamma object.
Usage
Gamma$new(shape = 0.5, scale = 1)
Arguments
shape
[double] shape parameter
scale
[double] scale parameter
Returns
A new 'Gamma' object.
Method clone()
The objects of this class are cloneable with this method.
Usage
Gamma$clone(deep = FALSE)
Arguments
deep
Whether to make a deep clone.
Examples
## Generate sample
scale = 1.5
shape = 0.5
gaml = ROOPSD::Gamma$new( scale = scale , shape = shape )
X = gaml$rvs( n = 1000 )
## And fit parameters
gaml$fit(X)
[Package ROOPSD version 0.3.9 Index]