MCPcopy Create free account
hub / github.com/eigenform/perfect / normalize

Method normalize

perfect/src/stats.rs:96–100  ·  view source on GitHub ↗

Produce a set of "normalized" values with the given floor value.

(&self, floor_min: i64)

Source from the content-addressed store, hash-verified

94impl RawResults {
95 /// Produce a set of "normalized" values with the given floor value.
96 pub fn normalize(&self, floor_min: i64) -> NormalizedResults {
97 NormalizedResults(
98 self.0.iter().map(|x| *x as i64 - floor_min as i64).collect()
99 )
100 }
101
102 /// Return the [`f32`] average over values in this list.
103 pub fn get_avg(&self) -> f32 {

Callers

nothing calls this directly

Calls 2

NormalizedResultsClass · 0.85
iterMethod · 0.45

Tested by

no test coverage detected