R/dist.R

Defines functions dist

Documented in dist

#compute distance between to vectors
#' @export
dist <- function(a,b){
	sqrt(sum(abs(b-a)^2))
}

Try the QuantumOps package in your browser

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

QuantumOps documentation built on Feb. 3, 2020, 5:07 p.m.