distvec: Compute Distance between two vectors

Description Usage Arguments Value Examples

View source: R/RcppExports.R

Description

Compute Distance between two vectors

Usage

1
distvec(x, y)

Arguments

x

A numeric vector

y

A numeric vector

Value

a numeric distance

Examples

1
2
3
4
5
x <-matrix(rnbinom(1000,mu=0.01, size=10),nrow=1000)
x <- x[1,]
y <-matrix(rnbinom(1000,mu=0.01, size=10),nrow=1000)
y <- y[1,]
distvec(x, y)

scGPS documentation built on Nov. 8, 2020, 5:22 p.m.