Learn R Programming

geozoning (version 1.0.0)

normDistMat: normDistMat

Description

normDistMat

Usage

normDistMat(matDistanceCorr, optiCrit)

Arguments

matDistanceCorr

corrected distance matrix using pErr, result of calDistance

optiCrit

criterion choice

Value

a normalized distance matrix

Details

normalize distance matrix so that diagonal is equal to 1

Examples

Run this code
# NOT RUN {
# load test map with simulated data
data(mapTest)
# load zoning results from test file
data(resZTest)
K=resZTest
resD = calDistance(typedist=1,mapTest$krigData,K$listZonePoint,K$zoneN,
        mapTest$krigSurfVoronoi,K$meanZone,pErr=0.9)
normDistMat(resD$matDistanceCorr,2)
# }

Run the code above in your browser using DataLab