Description Usage Arguments Details Value Author References See Also Examples
intCriteria
calculates various internal clustering validation or
quality criteria.
1 | intCriteria(traj, part, crit)
|
traj |
|
part |
|
crit |
|
The function intCriteria
calculates internal clustering indices.
The list of all the supported criteria can be obtained with the
getCriteriaNames
function.
The currently available indices are :
"Ball_Hall"
"Banfeld_Raftery"
"C_index"
"Calinski_Harabasz"
"Davies_Bouldin"
"Det_Ratio"
"Dunn"
"Gamma"
"G_plus"
"GDI11"
"GDI12"
"GDI13"
"GDI21"
"GDI22"
"GDI23"
"GDI31"
"GDI32"
"GDI33"
"GDI41"
"GDI42"
"GDI43"
"GDI51"
"GDI52"
"GDI53"
"Ksq_DetW"
"Log_Det_Ratio"
"Log_SS_Ratio"
"McClain_Rao"
"PBM"
"Point_Biserial"
"Ray_Turi"
"Ratkowsky_Lance"
"Scott_Symons"
"SD_Scat"
"SD_Dis"
"S_Dbw"
"Silhouette"
"Tau"
"Trace_W"
"Trace_WiB"
"Wemmert_Gancarski"
"Xie_Beni"
All the names are case insensitive and can be abbreviated. The keyword
"all"
can also be used as a shortcut to calculate all the
internal indices.
The GDI (Generalized Dunn Indices) are designated by
the following convention: GDImn, where the integers m
(1<=m<=5) and n (1<=n<=3) correspond to the
between-group and within-group distances respectively. See the vignette
for a comprehensive definition of the various distances. GDI
alone is synonym of GDI11
and is the genuine Dunn's index.
A list containing the computed criteria, in the same order as in the
crit
argument.
Bernard Desgraupes
bernard.desgraupes@u-paris10.fr
University of Paris Ouest - Nanterre
Lab Modal'X (EA 3454)
See the bibliography at the end of the vignette.
getCriteriaNames
, extCriteria
,
bestCriterion
.
1 2 3 4 5 6 7 8 9 10 11 12 | # Create some data
x <- rbind(matrix(rnorm(100, mean = 0, sd = 0.5), ncol = 2),
matrix(rnorm(100, mean = 1, sd = 0.5), ncol = 2),
matrix(rnorm(100, mean = 2, sd = 0.5), ncol = 2))
# Perform the kmeans algorithm
cl <- kmeans(x, 3)
# Compute all the internal indices
intCriteria(x,cl$cluster,"all")
# Compute some of them
intCriteria(x,cl$cluster,c("C_index","Calinski_Harabasz","Dunn"))
# The names are case insensitive and can be abbreviated
intCriteria(x,cl$cluster,c("det","cal","dav"))
|
$ball_hall
[1] 0.4166053
$banfeld_raftery
[1] -133.8103
$c_index
[1] 0.06044063
$calinski_harabasz
[1] 257.723
$davies_bouldin
[1] 0.6129285
$det_ratio
[1] 9.226674
$dunn
[1] 0.0551928
$gamma
[1] 0.839826
$g_plus
[1] 0.03556389
$gdi11
[1] 0.0551928
$gdi12
[1] 0.3029892
$gdi13
[1] 0.1081358
$gdi21
[1] 1.292813
$gdi22
[1] 7.097093
$gdi23
[1] 2.532929
$gdi31
[1] 0.6572907
$gdi32
[1] 3.608296
$gdi33
[1] 1.287789
$gdi41
[1] 0.6004768
$gdi42
[1] 3.296407
$gdi43
[1] 1.176477
$gdi51
[1] 0.2169824
$gdi52
[1] 1.191158
$gdi53
[1] 0.4251202
$ksq_detw
[1] 8530.225
$log_det_ratio
[1] 333.3148
$log_ss_ratio
[1] 1.2546
$mcclain_rao
[1] 0.3872499
$pbm
[1] 4.596475
$point_biserial
[1] -0.6075873
$ray_turi
[1] 0.1871382
$ratkowsky_lance
[1] 0.5091419
$scott_symons
[1] -481.4053
$sd_scat
[1] 0.2249074
$sd_dis
[1] 1.560493
$s_dbw
[1] 1.390899
$silhouette
[1] 0.4581343
$tau
[1] 0.5596705
$trace_w
[1] 62.13522
$trace_wib
[1] 7.917379
$wemmert_gancarski
[1] 0.5963795
$xie_beni
[1] 22.15083
$c_index
[1] 0.06044063
$calinski_harabasz
[1] 257.723
$dunn
[1] 0.0551928
$det_ratio
[1] 9.226674
$calinski_harabasz
[1] 257.723
$davies_bouldin
[1] 0.6129285
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.