Skip to main content

StreamingDepth

Trait StreamingDepth 

Source
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§

Source

fn depth_one(&self, curve: &[f64]) -> f64

Depth of a single curve given as a contiguous &[f64] of length n_points.

Source

fn depth_batch(&self, data_obj: &FdMatrix) -> Vec<f64>

Batch depth for a matrix of query curves (nobj × n_points).

Source

fn n_points(&self) -> usize

Number of evaluation points.

Source

fn n_reference(&self) -> usize

Number of reference observations backing this estimator.

Implementors§