Skip to main content

normalized

Function normalized 

Source
pub fn normalized(values: Vec<f32>) -> Option<Vec<f32>>
Expand description

Scales a vector to unit length, so cosines are plain dot products. None when the vector has no direction to keep.