triangular: Triangular Density Function

Description Usage Arguments Value Author(s) References Examples

Description

Density and random generation for the Triangular circular distribution.

Usage

1
2
dtriangular(x, rho)
rtriangular(n, rho, control.circular=list())

Arguments

x

a vector. The object is coerced to class circular.

n

number of observations.

rho

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

control.circular

the attribute of the resulting object.

Value

dtriangular gives the density and rtriangular generates random deviates.

Author(s)

Claudio Agostinelli and Ulric Lund

References

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

Examples

1
2
3
4
5
data1 <- rtriangular(100, 0.3, control.circular=list(units="degrees"))
plot(data1)

ff <- function(x) dtriangular(x, rho=0.3)
curve.circular(ff, shrink=1.2, join=TRUE)

circular documentation built on May 2, 2019, 4:42 p.m.