powered by
Density and random generation for the Triangular circular distribution.
dtriangular(x, rho) rtriangular(n, rho, control.circular=list())
dtriangular gives the density and rtriangular generates random deviates.
dtriangular
rtriangular
a vector. The object is coerced to class circular.
circular
number of observations.
concentration parameter of the distribution. rho must be between 0 and \(4/pi^2\).
the attribute of the resulting object.
Claudio Agostinelli and Ulric Lund
Jammalamadaka, S. Rao and SenGupta, A. (2001). Topics in Circular Statistics, Section 2.2.3, World Scientific Press, Singapore.
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)
Run the code above in your browser using DataLab