Exponential: Exponential

ExponentialR Documentation

Exponential

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

## 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 Sept. 11, 2023, 9:06 a.m.

Related to Exponential in ROOPSD...