#*********************************************
#*********************************************
#' Returns cummulative probability density values of the Rayleigh distribution.
#'
#'
#' @return
#'
#' @examples
#' \dontrun{}
#'
#' @export
#' @rdname prayl
#'
prayl<-function(q,sigma){
############ AUTHOR(S): ############
# Arne Johannes Holmin
############ LANGUAGE: #############
# English
############### LOG: ###############
# Start: 2008-02-11 - First version.
# Last: 2009-05-05 - Cleaned up and implemented in the functions library due to faster execution than the corresponding functions in the package 'VGAM', and due to a problem with 'predict(arima())' when using 'VGAM'.
########### DESCRIPTION: ###########
# Returns cummulative probability density values of the Rayleigh distribution.
########## DEPENDENCIES: ###########
#
############ VARIABLES: ############
# - 'q' contains the values at which the cummulative Rayleigh distribution values are to be computed.
# - 'sigma' is the parameter in the Rayleigh distribution satisfying sigma>0.
##################################################
##################################################
if(sigma<=0){
stop("'sigma' must be positive")
}
1-exp(-q^2/2/sigma^2)
##################################################
##################################################
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.