pub fn stable_mean<T: Float>(values: &[T]) -> CoreResult<T>
Stable mean calculation using compensated summation