R/Max.Min.Expansion.R

"Max.Min.Expansion" <-
function(m, m.rid) {
  d <- stats::dist(m); # it computes the euclidean distance between all pairs of rows of m
  d.rid <- stats::dist(m.rid);
  max.exps <- max(d.rid/d);
  min.exps <- min(d.rid/d);
  exps <- c(max.exps,min.exps);
  exps
}

Try the clusterv package in your browser

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

clusterv documentation built on June 8, 2025, 10:21 a.m.