TRIANGULAR {convdistr}R Documentation

Factory for a TRIANGULAR distribution object

Description

Returns an TRIANGULAR distribution object that produce random numbers from a triangular distribution using the rtriang function

Usage

new_TRIANGULAR(p_min, p_max, p_mode, p_dimnames = "rvar")

Arguments

p_min

A numeric that represents the lower limit

p_max

A numeric that represents the upper limit

p_mode

A numeric that represents the mode

p_dimnames

A character that represents the name of the dimension

Value

An object of class DISTRIBUTION, TRIANGULAR

Author(s)

John J. Aponte

Examples

myDistr <- new_TRIANGULAR(-1,1,0)
myDistr$rfunc(10)

[Package convdistr version 1.6.2 Index]