R/het.cluster.dist.R

het.cluster.dist<-function(x,# matrix with two rows
                           method = 'euclidean'){
  if(method=='euclidean'){
    d = sqrt(sum((x[1,]-x[2,])^2))
  }
  return(d)
}

Try the phantom package in your browser

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

phantom documentation built on May 2, 2019, 6:01 a.m.