lastPass: lastPass

Description Usage Arguments Details Value Examples

Description

lastPass

Usage

1
2
lastPass(map, qProb, listOfZ, crit, cost, costL, nz, mdist, pErr = 0.9,
  optiCrit = 2, minSize = 0.012, simplitol = 0.001, disp = 0)

Arguments

map

object returned by function genMap

qProb

probability vector used to generate quantile values

listOfZ

list of zoning objects (such as returned by calNei function)

crit

criterion value list

cost

cost value list

costL

cost per lable value list

nz

number of zones list

mdist

distance matrix list

pErr

equality tolerance for distance calculations

optiCrit

criterion choice

minSize

zone area threshold under which a zone is too small to be manageable

simplitol

tolerance for spatial polygons geometry simplification

disp

0: no info, 1: detailed info

Details

description, a paragraph

Value

a list with components

listZ

list of zoning objects (such as returned by calNei function)

crit

criterion value list

cost

cost value list

costL

cost per label value list

nz

number of zones list

mdist

distance matrix list

Examples

1
2
3
4
5
6
7
8
data(mapTest)
criti=correctionTree(c(0.4,0.7),mapTest,LASTPASS=FALSE)
Z=criti$zk[[1]][[1]]$zonePolygone #initial zoning
printZsurf(Z) # 8 zones with 2 small zones (7 and 8)
newRes=lastPass(mapTest,c(0.4,0.7),criti$zk[1],criti$criterion[1],
criti$cost[1],criti$costL[1],criti$nz[1],criti$mdist[1])
newZ=newRes$listOfZ[[1]][[1]]$zonePolygone
printZsurf(newZ) # 6 zones, 2 small zones were removed

geozoning documentation built on May 2, 2019, 9:43 a.m.