mdm: Maximum distance model of deterrence

Description Usage Arguments Value Author(s) Examples

Description

Calculate the cost of distances based on a simple maximum interaction distance.

Usage

1
mdm(dists, max)

Arguments

dists

a vector or matrix of distances

max

maximum distance of interaction

Value

Deterrences (0 or 1)

Author(s)

Joe Roe <jwg983@hum.ku.dk>

Examples

1
2
3
distmat <- matrix(runif(n=64),8,8)
diag(distmat) <- 0
mdm(distmat, 0.1)

CRC1266-A2/moin documentation built on May 7, 2019, 8:56 p.m.