Function stats_variance
Source pub fn stats_variance(data_json: String) -> String
Expand description
Computes the sample variance of a JSON array of f64 values.
Uses the (n-1) denominator for unbiased estimation.
§Arguments
data_json - JSON string representing an array of f64 values
§Returns
JSON string with the variance, or “null” if input is invalid