spClustIndex: Cluster Validity Index

Description Usage Arguments Value See Also Examples

View source: R/spClustIndex.R

Description

This function used to validate the clustering result

Usage

1

Arguments

fgwc

result(object) from fgwc clustering

Value

validity indeks

See Also

visualize for cluster visualizatiion scale for data scalling

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
#load data example
X <- example

#if using matrix distance
distance <- dist

#if using shapefile
#library(rgdal) for call readOGR
#distance <- readOGR(dsn = 'folder/.',"shapefile name")

#load population data
pop <- population

clust <- fgwc(X,pop,distance,K=2,m=1.5,beta=0.5)

#show cluster validation
spClustIndex(clust)

imamhabib/spatialClust documentation built on May 18, 2019, 3:44 a.m.