R/kmeansBIC.R

Defines functions kmeansBIC

Documented in kmeansBIC

kmeansBIC <-
function(fit){
m = ncol(fit$centers)
n = length(fit$cluster)
k = nrow(fit$centers)
D = fit$tot.withinss
return(D + log(n)*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.