rtriangular: A function to generate random numbers from the triangular...

Description Usage Arguments Details Value Author(s) References Examples

Description

Generates a random sample of size n from the desired triangular distribution with parameters, a and b.

Usage

1
rtriangular(n, a, b)

Arguments

n

a numeric value which denotes the sample size.

a

a numeric value for the first parameter.

b

a numeric value for the second parameter.

Details

b should be greater than a.

Value

Returns a vector of sample.

Author(s)

Ozlem Ilk

References

Ilk, O. (2011). R Yazilimina Giris [Introduction to R Language]. ODTU Yayincilik [METU Press].

Examples

1
rtriangular(5,1,5)


Search within the OOmisc package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.