Learn R Programming

superml (version 0.5.7)

dot: Dot product similarity in vectors

Description

Computes the dot product between two given vectors.

Usage

dot(a, b, norm = TRUE)

Value

numeric vector containing sdot product score

Arguments

a

numeric vector

b

numeric vector

norm

logical, compute normalised dot product, default=True

Examples

Run this code
a <- runif(5)
b <- runif(5)
s <- dot(a, b)

Run the code above in your browser using DataLab