dot: Dot product similarity in vectors

View source: R/RcppExports.R

dotR Documentation

Dot product similarity in vectors

Description

Computes the dot product between two given vectors.

Usage

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

a <- runif(5)
b <- runif(5)
s <- dot(a, b)


superml documentation built on May 29, 2024, 1:09 a.m.