expAbsDiff.circ: Expected absolute difference of two circular uniform RVs

Description Usage Arguments Value

Description

Estimates the expected circular temporal distance between crimes using discrete FFT or numerical integration

Usage

1
expAbsDiff.circ(X, Y, mod = 24, n = 2000, method = "convolution")

Arguments

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

Y

c(min,min+length). Same conditions from X applies.

mod

the period of time. E.g., mod=24 for time of day (in hours), mod=7 for day of week (in days)

n

number of bins for discretization of continuous time domain.

method

use convolution or monte carlo integration (montecarlo)

Value

the expected absolute difference


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