Exponential: Create a Exponential distribution

Description Usage Arguments Value See Also Examples

View source: R/Exponential.R

Description

Create a Exponential distribution

Usage

1
Exponential(rate = 1)

Arguments

rate

The rate parameter. Can be any positive number. Defaults to 1.

Value

A Exponential object.

See Also

Other continuous distributions: Beta, Cauchy, ChiSquare, FisherF, Gamma, LogNormal, Logistic, Normal, StudentsT, Tukey, Uniform, Weibull

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
set.seed(27)

X <- Exponential(5)
X

random(X, 10)

pdf(X, 2)
log_pdf(X, 2)

cdf(X, 4)
quantile(X, 0.7)

cdf(X, quantile(X, 0.7))
quantile(X, cdf(X, 7))

distributions3 documentation built on Sept. 3, 2019, 5:06 p.m.