dot: Dot product similarity in vectors

Description Usage Arguments Value Examples

View source: R/RcppExports.R

Description

Computes the dot product between two given vectors.

Usage

1
dot(a, b, norm = TRUE)

Arguments

a

numeric vector

b

numeric vector

norm

logical, compute normalised dot product, default=True

Value

numeric vector containing sdot product score

Examples

1
2
3
a <- runif(5)
b <- runif(5)
s <- dot(a, b)

superml documentation built on April 28, 2020, 9:05 a.m.