Learn R Programming

geozoning (version 1.0.0)

Transition_Zone_Far_Boundary: Transition_Zone_Far_Boundary

Description

Transition_Zone_Far_Boundary

Usage

Transition_Zone_Far_Boundary(map, Z, numZ)

Arguments

map

object returned by function genMap

Z

list of zones.

numZ

number of the zone whose values will be approximated.

Value

approximated values of the zone (numZ) given as parameter.

Details

funtion that approximates the value in a transition zone (which doesn't have commun boundary with the map) by the solution of the Laplace's equation. The numerical resolution of the Laplace's equation will be based on the discretisation of the data on the grid (map$krigGrid).

Examples

Run this code
# NOT RUN {
 seed=35
 map=genMap(DataObj=NULL,seed=seed,krig=2,typeMod="Exp",nPoints=500)
 ZK=initialZoning(qProb=c(0.65,0.8),map)
 Z=ZK$resZ$zonePolygone # list of zones
 lab = ZK$resZ$lab # label of zones
 plotM(map = map,Z = Z,lab = lab, byLab = FALSE)
 # zone 5 is a transition zone that is far from map boundary
 numZ = 5
 Estimation = Transition_Zone_Far_Boundary(map = map, Z = Z, numZ = numZ)
 # compute the cost
 cL = Cost_By_Laplace(map = map, Z = Z, numZ = numZ, Estimation = Estimation)
 cM = Cost_By_Mean(map = map, Z = Z, numZ = numZ)
 print(cL$cost_Laplace)
 print(cM$cost_Mean)
 # zone 5 is a zone with gradient
# }

Run the code above in your browser using DataLab