MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / min_max_mean

Function min_max_mean

nodedb-array/src/query/aggregate.rs:272–277  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

270
271 #[test]
272 fn min_max_mean() {
273 let t = tile(&[(0, Some(1.0)), (1, Some(5.0)), (2, Some(3.0))]);
274 assert_eq!(aggregate_attr(&t, 0, Reducer::Min).finalize(), Some(1.0));
275 assert_eq!(aggregate_attr(&t, 0, Reducer::Max).finalize(), Some(5.0));
276 assert_eq!(aggregate_attr(&t, 0, Reducer::Mean).finalize(), Some(3.0));
277 }
278
279 #[test]
280 fn merge_combines_partials_exactly() {

Callers

nothing calls this directly

Calls 1

tileFunction · 0.70

Tested by

no test coverage detected