View source: R/quantile.circular.R
quantile.circular | R Documentation |
The function quantile.circular
produces sample circular quantiles
corresponding to the given probabilities for a circular data set.
## S3 method for class 'circular'
quantile(x, probs = seq(0, 1, 0.25), na.rm=FALSE, names = TRUE, type = 7, ...)
x |
numeric circular vector whose sample quantiles are wanted. |
probs |
numeric vector of probabilities with values in
|
na.rm |
logical; if true, any |
names |
logical; if true, the result has a |
type |
an integer between 1 and 9 selecting one of the nine quantile algorithms detailed below to be used. |
... |
further arguments passed to or from other methods.
Like |
A vector of length length(probs)
is returned;
if names = TRUE
, it has a names
attribute.
NA
and NaN
values in probs
are
propagated to the result.
The algorithm will proceed how described below: 1) Linearize the circular observations. 2) Calculate the linear median like type establish. 3) The value it will transformed in circular.
See description on documentation of quantile
.
Claudio Agostinelli and Alessandro Gagliardi.
x <- rvonmises(1001, mu=circular(pi), kappa=5)
quantile.circular(x) # Extremes & Quartiles by default
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.