Skip to contents

Computes several quality measures on a trained GeoSOM.This function is a wrapper of aweSOM::somQuality().

Usage

geosom_quality(gsom)

Arguments

gsom

A kohonen object,get from geosom().

Value

A list containing quality measures : quantization error, share of explained variance, topographic error and Kaski-Lagus error.

Author

Wenbo Lv lyu.geosocial@gmail.com

Examples

data(pmc)
set.seed(2004)
g = geosom(data = pmc, coords = c("centroidx","centroidy"),
wt = 3,grid = geosomgrid(6,10),normalize = TRUE)
geosom_quality(g)
#> 
#> ## Quality measures:
#>  * Quantization error     :  6.549047 
#>  * (% explained variance) :  45.23 
#>  * Topographic error      :  0.7158273 
#>  * Kaski-Lagus error      :  5.257759 
#>  
#> ## Number of obs. per map cell:
#>  1  2  3  4  5  6  7  8  9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 
#>  4  8  7  4  4 14  6  3  3  3  4  5  4  3  3  3  2  7  3  2  4  2  5  5  4  3 
#> 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 
#>  4  4  4  5  5  3  5  4  1  3  8  5  4  4  3  4  8  4  3  3  5  5  6  6  6  5 
#> 53 54 55 56 57 58 59 60 
#>  5  3 10  5  7  4  5  7