R/dEuclid2.R

Defines functions dEuclid2.BasicGOProfile dEuclid2.default dEuclid2

dEuclid2 <- function(x, y) {
  UseMethod("dEuclid2")
}

dEuclid2.default <- function(x, y) {
  return(sum((x-y)^2))
}

dEuclid2.BasicGOProfile <- function(x, y) {
  return(sum((x[,3]/ngenes(x) - y[,3]/ngenes(y))^2))
}

Try the goProfiles package in your browser

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

goProfiles documentation built on Nov. 8, 2020, 8:12 p.m.