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: dexp.sin

Function Description: dexp.sin

Four-parameter exponential sin, as a probability distribution

Function Arguments:

ArgumentDefault Value
x
lo
hi
skew
tail

Function Source:

dexp.sin=function(x,lo,hi,skew,tail)
{
integral=integrate(exponential.sin,lower=lo,upper=lo+hi,asymp=1,b=lo,c=hi,d=skew,e=tail)$val

return(exponential.sin(x,asymp=1,b=lo,c=hi,d=skew,e=tail)/integral)
}