Skip to main content

DbscanExt

Trait DbscanExt 

Source
pub trait DbscanExt {
    // Required method
    fn fit_predict_with_noise(
        &self,
        data: &[Vec<f32>],
    ) -> Result<Vec<Option<usize>>>;

    // Provided method
    fn is_noise(label: usize) -> bool { ... }
}
Expand description

Extended DBSCAN interface with noise detection.

Required Methods§

Source

fn fit_predict_with_noise( &self, data: &[Vec<f32>], ) -> Result<Vec<Option<usize>>>

Fit and predict, returning labels where noise is marked as None.

Provided Methods§

Source

fn is_noise(label: usize) -> bool

Check if a label represents noise.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§