Exponential: Exponential

Description Details Super class Active bindings Methods Examples

Description

Exponential distribution in OOP way. Based on AbstractDist

Details

See AbstractDist for generic methods

Super class

ROOPSD::AbstractDist -> Exponential

Active bindings

rate

[double] rate of the exponential law

params

[vector] params of the exponential law

Methods

Public 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.

Examples

1
2
3
4
5
6
7
## Generate sample
rate = 0.5
expl = ROOPSD::Exponential$new( rate = rate )
X    = expl$rvs( n = 1000 )

## And fit parameters
expl$fit(X)

ROOPSD documentation built on Aug. 26, 2020, 5:15 p.m.

Related to Exponential in ROOPSD...