Rdocumentation
powered by
Learn R Programming
crimelinkage (version 0.0.4)
getD: Expected absolute distance of a circular uniform RV to a point
Description
Calculates the expected circular distance between a uniform rv and a point
Usage
getD(y, X, mod = 24)
Arguments
y
vector of times in [0,mod)
X
c(min,min+length). X[1] must be >= 0 and X[2] >= X[1]. It is possible that X[2] can be > mod. I.e., do not do
X %% mod
mod
the period of time. E.g., mod=24 for time of day (in hours), mod=7 for day of week (in days)
Value
the expected absolute difference