compute_mean

Function compute_mean 

Source
pub fn compute_mean(vec: &[f32]) -> Option<f64>
Expand description

Calculate the mean of for a slice of f32 values There’s no need for a generic implementation here, as we only need f32 for embeddings