Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

dot

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

Build Machine Learning Models Like Using Python's Scikit-Learn Library in R

v0.5.3
GPL-3 | file LICENSE
Authors
Manish Saraswat [aut, cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.