[][src]Function vrp_core::algorithms::dbscan::create_clusters

pub fn create_clusters<'a, T>(
    items: &'a [T],
    eps: f64,
    min_items: usize,
    neighborhood_fn: &NeighborhoodFn<'a, T>
) -> Vec<Cluster<'a, T>> where
    T: Hash + Eq

Creates clusters of items using DBSCAN (Density-Based Spatial Clustering of Applications with Noise) algorithm. NOTE: neighborhood_fn shall return point itself.