MCPcopy Create free account
hub / github.com/SingleRust/SingleRust / standardize_log

Function standardize_log

src/shared/processing/mod.rs:82–87  ·  view source on GitHub ↗
(x: f64, mu: f64, sigma: f64)

Source from the content-addressed store, hash-verified

80}
81
82pub fn standardize_log(x: f64, mu: f64, sigma: f64) -> f64 {
83 if sigma == 0.0 {
84 return 0.0;
85 }
86 (x - mu) / sigma
87}
88
89pub fn standardize_log_form_vec(vec: &[f64]) -> Vec<f64> {
90 // Filter out non-finite values for statistics calculation

Callers 1

standardize_log_form_vecFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected