R/inter.inertia.S

"inter.inertia" <- 
function(object)
{
	answer <- .C("get_inter_ss",
		as.vector(t(object$weights)),
		nrow(object$weights),
		ncol(object$weights),
		as.vector(apply(object$data, 2, median)),
		double(object$grid$nclass))[[5]]
	sum(answer * object$size)
}
harrysouthworth/kohonen documentation built on May 17, 2019, 3:03 p.m.