Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


ROOPSD (version 0.3.9)

Exponential: Exponential

Description

Exponential distribution in OOP way. Based on AbstractDist

Arguments

Super class

ROOPSD::AbstractDist -> Exponential

Active bindings

rate

[double] rate of the exponential law

params

[vector] params of the exponential law

Methods

Inherited methods


Method new()

Create a new Exponential object.

Usage

Exponential$new(rate = 1)

Arguments

rate

[double] Rate of the exponential law

Returns

A new `Exponential` object.


Method clone()

The objects of this class are cloneable with this method.

Usage

Exponential$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Details

See AbstractDist for generic methods

Examples

Run this code
## Generate sample
rate = 0.5
expl = ROOPSD::Exponential$new( rate = rate )
X    = expl$rvs( n = 1000 )

## And fit parameters
expl$fit(X)

Run the code above in your browser using DataLab