Topic: Utilities

Topic Description:

Basic R utilities used in many packages and functions, such as date and string manipulations, statistical distributions, geometry of lines and distances. The R package date is required for the two data functions.



File: utilities/distributions.r

View File Source Download File No help file available

Function: psymexp

Function Description: psymexp

The CDF for the symmetric exponential.

Function Arguments:

ArgumentDefault Value
x
center
rate

Function Source:

psymexp=function(x,center,rate)
{
y=numeric()
right=x>=center
left=x

y[left]=0.5*exp(-rate*(center-x[left]))
y[right]=1-0.5*exp(-rate*(x[right]-center))

return(y)
}