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

Method local_min_pairwise_diff

perfect/src/stats.rs:275–282  ·  view source on GitHub ↗

Obtain the minimum for each observation, then return a list of pairwise differences [as signed integers] between them.

(&self)

Source from the content-addressed store, hash-verified

273 // Obtain the minimum for each observation, then return a list of pairwise
274 // differences [as signed integers] between them.
275 pub fn local_min_pairwise_diff(&self) -> Vec<isize> {
276 let local_mins: Vec<usize> = self.local_min();
277 let mut diffs = Vec::new();
278 for (x, y) in local_mins.iter().tuple_windows() {
279 diffs.push((*y as isize) - (*x as isize));
280 }
281 diffs
282 }
283}
284
285/// A set of related measurements taken with different PMC events, where

Callers

nothing calls this directly

Calls 3

local_minMethod · 0.80
iterMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected