R/kmeansAIC.R

Defines functions kmeansAIC

Documented in kmeansAIC

kmeansAIC <-
function(fit){
m = ncol(fit$centers)
k = nrow(fit$centers)
D = fit$tot.withinss
return(D + 2*m*k)
}

Try the kmeansstep package in your browser

Any scripts or data that you put into this service are public.

kmeansstep documentation built on May 2, 2019, 5 p.m.