triang: The Triangular Distribution.

Description Usage Arguments Value See Also Examples

Description

Density, distribution funtion, quantile function and random generation for the triangular distribution

Usage

1
2
3
4
5
6
7
dtriang(x, xMin, xMax, xMode)

ptriang(q, xMin, xMax, xMode)

qtriang(q, xMin, xMax, xMode)

rtriang(n, xMin, xMax, xMode)

Arguments

x,

q vector of quantiles

xMin

the minimum values of the range of the random variable

xMax

the maximum values of the range of the random variable

xMode

the mode of the random variable

n

number of observations

p

vector pf probabilities

Value

dtriang gives the density, ptriang gives the distribution function, qtriang gives the quantile function, and rtriang generates random deviates.

See Also

Distributions for other distributions

Examples

1
2
3
4
curve(dtriang(x, 0, 3, 1), xlim = c(0, 3))
curve(ptriang(x, 0, 3, 1), xlim = c(0, 3))
curve(qtriang(x, 0, 3, 1), xlim = c(0, 1))
hist(rtriang(1e6, 0, 3, 1), breaks = seq(0, 3, by = 0.01))

MobilePhoneESSnetBigData/pestim documentation built on May 31, 2019, 2:44 p.m.