triangular | R Documentation |
Density and random generation for the Triangular circular distribution.
dtriangular(x, rho)
rtriangular(n, rho, control.circular=list())
x |
a vector. The object is coerced to class |
n |
number of observations. |
rho |
concentration parameter of the distribution. rho must be
between 0 and |
control.circular |
the attribute of the resulting object. |
dtriangular
gives the density and rtriangular
generates
random deviates.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.