hausMat: Creating a Hausdorff spatial weight matrix

Description Usage Arguments Value

View source: R/hausMat.R

Description

This function takes a SpatialPolygons object

Usage

1
hausMat(shp, f1, f2 = f1, fileout = FALSE, filename = NULL)

Arguments

shp

a SpatialPolygons object.

f1

The percentage (as a decimal) of region i to retain when calculating the directional Hausdorff distance from region i to region j.

f2

The percentage (as a decimal) of region j to retain when calculating the directional Hausdorff distance from region j to i. Defaults to the value of f1. Note that specifying a different value will result in a non-symmetric matrix.

fileout

Should the resulting weight matrix be written to file? Defaults to FALSE

filename

If fileout is TRUE, the name for the file to be outputted.

Value

an nxn matrix of requested distances.


jschedler/hausdorff documentation built on April 24, 2020, 2:10 p.m.