Learn R Programming

convdistr (version 1.6.1)

EXPONENTIAL: Factory for a EXPONENTIAL distribution using confidence intervals

Description

Returns an EXPONENTIAL distribution object that produce random numbers from an exponential distribution using the rexp function

Usage

new_EXPONENTIAL(p_rate, p_dimnames = "rvar")

Value

An object of class DISTRIBUTION, EXPONENTIAL

Arguments

p_rate

A numeric that represents the rate of events

p_dimnames

A character that represents the name of the dimension

Author

John J. Aponte

Examples

Run this code
myDistr <- new_EXPONENTIAL(5)
myDistr$rfunc(10)

Run the code above in your browser using DataLab