getD: Expected absolute distance of a circular uniform RV to a...

Description Usage Arguments Value

Description

Calculates the expected circular distance between a uniform rv and a point

Usage

1
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


crimelinkage documentation built on May 2, 2019, 1:36 a.m.