pub trait StreamingDepth {
// Required methods
fn depth_one(&self, curve: &[f64]) -> f64;
fn depth_batch(&self, data_obj: &FdMatrix) -> Vec<f64>;
fn n_points(&self) -> usize;
fn n_reference(&self) -> usize;
}Expand description
Trait for streaming depth estimators backed by a pre-built reference state.
Required Methods§
Sourcefn depth_one(&self, curve: &[f64]) -> f64
fn depth_one(&self, curve: &[f64]) -> f64
Depth of a single curve given as a contiguous &[f64] of length n_points.
Sourcefn depth_batch(&self, data_obj: &FdMatrix) -> Vec<f64>
fn depth_batch(&self, data_obj: &FdMatrix) -> Vec<f64>
Batch depth for a matrix of query curves (nobj × n_points).
Sourcefn n_reference(&self) -> usize
fn n_reference(&self) -> usize
Number of reference observations backing this estimator.