pub fn mean_simd<F>(a: &ArrayView1<'_, F>) -> Fwhere
F: Float + SimdUnifiedOps,Expand description
SIMD-accelerated array mean
Computes the arithmetic mean: mean = sum(x) / n
§Arguments
a- Input array
§Returns
Arithmetic mean of elements
§Examples
use scirs2_core::ndarray::array;
use scirs2_core::ndarray_ext::elementwise::mean_simd;
let x = array![1.0_f64, 2.0, 3.0, 4.0, 5.0];
let m = mean_simd::<f64>(&x.view());
assert!((m - 3.0).abs() < 1e-14);§Use Cases
- Central tendency measurement
- Batch normalization (compute running mean)
- Signal averaging
- Expected value estimation