Function engram::metrics::norm_l2

source ·
pub fn norm_l2(vector: &[f64]) -> f64
Expand description

Compute the L2 norm (Euclidean distance) of a vector.

§Examples

let x = [1.0, 2.0, 3.0];
let n = norm_l2(&x);