Learn R Programming

geozoning (version 1.0.0)

distanceNormalisationSum: distanceNormalisationSum

Description

distanceNormalisationSum

Usage

distanceNormalisationSum(matDistance)

Arguments

matDistance

distance matrix as returned by a call to calDistance

Value

a normalized distance matrix

Details

normalize all MIJ terms of the distance matrix by dividing it by sum of squared diagonal terms sum(MII^2+MJJ^2)

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)
geozoning:::distanceNormalisationSqrt(resD$matDistanceCorr)
# }

Run the code above in your browser using DataLab