Skip to main content

stats_summary

Function stats_summary 

Source
pub fn stats_summary(data: Vec<f64>) -> PyResult<(f64, f64, f64)>
Expand description

Compute mean, std, and variance in a single batch call.

Avoids 3 separate FFI calls by computing all three in a single pass.

Parameters: data: Input data array

Returns: Tuple (mean, std, variance) — sample variance (ddof=1)