MCPcopy Create free account
hub / github.com/Open-Quant/openquant / current

Method current

crates/openquant/src/streaming_hpc.rs:197–203  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

195 }
196
197 pub fn current(&self) -> Option<f64> {
198 if self.window.len() < self.cfg.support_buckets {
199 None
200 } else {
201 Some(self.window_sum / self.window.len() as f64)
202 }
203 }
204
205 pub fn completed_buckets(&self) -> usize {
206 self.window.len()

Callers 1

updateMethod · 0.80

Calls 1

lenMethod · 0.80

Tested by

no test coverage detected