Learn R Programming

convdistr (version 1.6.1)

TRIANGULAR: 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")

Value

An object of class DISTRIBUTION, TRIANGULAR

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

Author

John J. Aponte

Examples

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

Run the code above in your browser using DataLab