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(), Frechet(), GEV(), GP(), Gamma(), Gumbel(), LogNormal(), Logistic(), Normal(), RevWeibull(), StudentsT(), Tukey(), Uniform(), Weibull()

Examples

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

X <- Exponential(5)
X

mean(X)
variance(X)
skewness(X)
kurtosis(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))

alexpghayes/distributions documentation built on April 8, 2021, 5:55 a.m.