Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

rtri

Random Generation from the Triangular Distribution


Description

Generates pseudo-random numbers from a symmetric triangular distribution.

Usage

rtri(n, r)

Arguments

n

number of random variables to generate.

r

concentration parameter of the distribution. r must be between 0 and 4/pi^2.

Details

The triangular cdf is inverted to obtain the random numbers.

Value

Returns a vector of n independent random variables generated from a symmetric triangular distribution with mean direction 0 and concentration parameter r.

References

Jammalamadaka, S. Rao and SenGupta, A. (2001). Topics in Circular Statistics, Section 2.3.3, World Scientific Press, Singapore.

See Also


CircStats

Circular Statistics, from "Topics in Circular Statistics" (2001)

v0.2-6
GPL-2
Authors
S-plus original by Ulric Lund <ulund@calpoly.edu>, R port by Claudio Agostinelli <claudio.agostinelli@unitn.it>
Initial release
2018-06-30

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.