strmeasure(P,sorted=FALSE,depths=NULL,alpha=0,method="Mean")alpha. The default value of $0$ computes the median from the maximum depth trimmed region (i.e. no trimming).method can be "Mean" (the default) to compute trimmed mean direction or "Tukey" (for circular sample only) to compute trimmed Tukey's median.While the option method="Tukey" supports only data on the circle, method="Mean" can also handle data on the sphere.
Mardia, K.V. and Jupp, E.J. (1999). Directional Statistics, Wiley.
sdepth for the calculation of the depth of a point, scontour for Tukey's spherical median.set.seed(2011)
strmeasure(runif(30,min=0,max=2*pi),alpha=1/3,method="Mean")
## calculating of trimmed Tukey median
set.seed(2011)
strmeasure(runif(30,min=0,max=2*pi),alpha=1/3,method="Tukey")Run the code above in your browser using DataLab