Learn R Programming

geozoning (version 1.0.0)

DIJ: DIJ

Description

DIJ

Usage

DIJ(i, j, sigmai2, meanZone, pErr)

Arguments

i

zone index

j

neighbor zone index

sigmai2

vector of zone variances

meanZone

list of zone mean values

pErr

tolerance for distance correction

Value

a list with components d and dCorr

Details

description, a paragraph

Examples

Run this code
# NOT RUN {
data(mapTest)
data(resZTest)
K=resZTest
nz=length(K$zonePolygone)
si2=rep(NA,nz)
for (kk in 1:nz){
si2[kk]=Sigmai2(kk,K$listZonePoint,mapTest$krigData,
        mapTest$krigSurfVoronoi,K$meanZone)$sigmai2
}
d12=DIJ(1,2,si2,K$meanzone,0.9)
# }

Run the code above in your browser using DataLab