R/wrappedstable.R

Defines functions rwrappedstable

Documented in rwrappedstable

#############################################################
#                                                           #
#   rwrappedstable function                                 #
#   Author: Claudio Agostinelli                             #
#   Email: claudio@unive.it                                 #
#   Date: August, 15, 2007                                  #
#   Copyright (C) 2007 Claudio Agostinelli                  #
#                                                           #
#   Version 0.2-3                                           #
#############################################################

rwrappedstable <- function(n,  scale=1, index, skewness, control.circular=list()) {
    dc <- control.circular
    result <- rstable(n=n, scale=scale, index=index, skewness=skewness) %% (2 * pi)
    result <- conversion.circular(circular(result), dc$units, dc$type, dc$template, dc$modulo, dc$zero, dc$rotation)
    return(result)
}

Try the circular package in your browser

Any scripts or data that you put into this service are public.

circular documentation built on May 1, 2019, 7:57 p.m.