Learn R Programming

geozoning (version 1.0.0)

lastPass: lastPass

Description

lastPass

Usage

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

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

Details

description, a paragraph

Examples

Run this code
# NOT RUN {
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
# }

Run the code above in your browser using DataLab