Learn R Programming

geozoning (version 1.0.0)

costLab: costLab

Description

costLab

Usage

costLab(K, map)

Arguments

K

zoning object, as returned by the calNei function

map

object returned by genMap function

Value

the sum of per label costs

Details

description, a paragraph

Examples

Run this code
# NOT RUN {
data(mapTest)
# run zoning with 2 quantiles corresponding to probability values 0.4 and 0.7,
# saving initial zoning and last level zonings
criti=correctionTree(c(0.4,0.7),mapTest,SAVE=TRUE)
K=criti$zk[[1]][[1]] # initial zoning
costLab(K,mapTest) #identical to criti$costL[[1]][[1]]
# }

Run the code above in your browser using DataLab