atlas-dot
Calculates the inner product between two sets of data points.
install
npm install --save atlas-dot
why
Breaking up atlas-dataset into standalone functions. This module contains the dot product:
examples
v · v
const dot = console// 5
u · v
...console// 11
caveats
Input checking is the responsibility of the caller. Make sure your arrays contain numbers and are of the same length.