normalize#

static vectorious.normalize(x)#

Normalizes x.

Arguments:
Returns:

NDArray

Examples:

import { normalize } from 'vectorious/core/normalize';

normalize([1, 2, 3]); // => array([0.26726123690605164, 0.5345224738121033, 0.8017836809158325])