Learn R Programming

geozoning (version 1.0.0)

calCrit2: calCrit2

Description

calCrit2

Usage

calCrit2(matDistance, zoneNModif)

Arguments

matDistance

zone distance matrix resulting from a call to calDistance

zoneNModif

matrix of zone neigbors with FALSE on the diagonal

Value

a numerical value equal to min(mean(dij^2/(dii^2+dij^2)))

Details

computes a quality criterion equal to min(2*min(dij/(dii+djj))) see also calCrit1, calCrit3, calCrit4, calCrit5, calCritMinMean for other criteria

Examples

Run this code
# NOT RUN {
data(mapTest)
data(resZTest)
K=resZTest
resD = calDistance(typedist=1,mapTest$krigData,K$listZonePoint,K$zoneN,
       mapTest$krigSurfVoronoi,K$meanZone,pErr=0.9)
calCrit2(resD$matDistanceCorr,K$zoneNModif)
# }

Run the code above in your browser using DataLab