# calCrit: calCrit In geozoning: Zoning Methods for Spatial Data

calCrit

## Usage

 `1` ```calCrit(matDistanceCorr, zoneNModif, optiCrit = 2) ```

## Arguments

 `matDistanceCorr` corrected distance matrix between zones, result of call to `calDistance` `zoneNModif` modified zone neighborhood matrix (FALSE values on diagonal), result of call to `calNei` `optiCrit` criterion to be optimized. Possible values are : 1min(mean(dij^2/(dii^2+dij^2))) 2min(2*min(dij/(dii+djj))) 3min(2*min(dij/(dii+djj))) 4min(min(dij^2/sqrt(dii^2*djj^2))) 5min(median(dij^2/sqrt(dii^2*djj^2))) 7mean(2*mean(dij/(dii+djj)))

## Details

wrapper function that redirects to the proper criterion calculation function according to optiCrit arg value

## Value

the criterion value as a real positive number indicating the zoning quality.

## Examples

 ``` 1 2 3 4 5 6 7 8 9 10``` ```# compute criterion on test zoning included in package # 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) crit = calCrit(resD\$matDistanceCorr,K\$zoneNModif,2) print(crit) ```

geozoning documentation built on May 2, 2019, 9:43 a.m.