pub fn stack_mean<T, const N: usize>(arr: &StackArray<T, N>) -> Twhere T: Float + NumAssignOps + Copy + Default + Zero,
Calculate mean without heap allocation