MCPcopy Create free account
hub / github.com/Open-Quant/openquant / nan_mean_std

Function nan_mean_std

crates/openquant/src/feature_importance.rs:364–367  ·  view source on GitHub ↗
(v: &[f64])

Source from the content-addressed store, hash-verified

362}
363
364fn nan_mean_std(v: &[f64]) -> (f64, f64) {
365 let vals: Vec<f64> = v.iter().copied().filter(|x| x.is_finite()).collect();
366 mean_std(&vals)
367}
368
369fn mean_std(v: &[f64]) -> (f64, f64) {
370 if v.is_empty() {

Callers 1

mean_decrease_impurityFunction · 0.85

Calls 1

mean_stdFunction · 0.85

Tested by

no test coverage detected