MCPcopy Index your code
hub / github.com/SingleRust/SingleRust / ComputeVariance

Interface ComputeVariance

src/shared/statistics/mod.rs:39–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39pub trait ComputeVariance {
40 fn variance_whole<I, T>(&self, direction: &Direction) -> anyhow::Result<Vec<T>>
41 where
42 I: PrimInt + Unsigned + Zero + AddAssign + Into<T> + Send + Sync,
43 T: Float + num_traits::NumCast + AddAssign + std::iter::Sum + Send + Sync;
44
45 fn variance_chunk<I, T>(
46 &self,
47 direction: &Direction,
48 reference: &mut [T],
49 ) -> anyhow::Result<()>
50 where
51 I: PrimInt + Unsigned + Zero + AddAssign + Into<T> + Send + Sync,
52 T: Float + num_traits::NumCast + AddAssign + std::iter::Sum + Send + Sync;
53}
54
55pub trait ComputeMinMax {
56 fn min_max_whole<T>(&self, direction: &Direction) -> anyhow::Result<(Vec<T>, Vec<T>)>

Callers

nothing calls this directly

Implementers 2

mod.rssrc/memory/statistics/mod.rs
mod.rssrc/backed/statistics/mod.rs

Calls

no outgoing calls

Tested by

no test coverage detected