pub trait BinningStrategy:
Send
+ Sync
+ 'static {
// Required methods
fn observe(&mut self, value: f64);
fn compute_edges(&self, n_bins: usize) -> BinEdges;
fn reset(&mut self);
fn clone_fresh(&self) -> Box<dyn BinningStrategy>;
}Available on crate feature
alloc only.Expand description
A strategy for computing histogram bin edges from a stream of values.
Required Methods§
Sourcefn compute_edges(&self, n_bins: usize) -> BinEdges
fn compute_edges(&self, n_bins: usize) -> BinEdges
Compute bin edges from observed values.
Sourcefn clone_fresh(&self) -> Box<dyn BinningStrategy>
fn clone_fresh(&self) -> Box<dyn BinningStrategy>
Create a fresh instance with the same configuration.