pub struct DbscanConfig {
pub eps: f32,
pub min_points: usize,
}Expand description
Configuration for DBSCAN density-based clustering.
Fields§
§eps: f32Neighborhood radius (eps); points within this distance are connected.
min_points: usizeMinimum neighbors (including the point itself) for a point to be a core point. Core points seed and expand clusters; non-core points within a core point’s neighborhood become border points, everything else is noise.
Implementations§
Source§impl DbscanConfig
impl DbscanConfig
Sourcepub const fn new(eps: f32, min_points: usize) -> DbscanConfig
pub const fn new(eps: f32, min_points: usize) -> DbscanConfig
Creates a config from the neighborhood radius and core-point threshold.
Trait Implementations§
Source§impl Clone for DbscanConfig
impl Clone for DbscanConfig
Source§fn clone(&self) -> DbscanConfig
fn clone(&self) -> DbscanConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DbscanConfig
impl Debug for DbscanConfig
Source§impl Default for DbscanConfig
impl Default for DbscanConfig
Source§fn default() -> DbscanConfig
fn default() -> DbscanConfig
Returns the “default value” for a type. Read more
Source§impl PartialEq for DbscanConfig
impl PartialEq for DbscanConfig
impl Copy for DbscanConfig
impl StructuralPartialEq for DbscanConfig
Auto Trait Implementations§
impl Freeze for DbscanConfig
impl RefUnwindSafe for DbscanConfig
impl Send for DbscanConfig
impl Sync for DbscanConfig
impl Unpin for DbscanConfig
impl UnsafeUnpin for DbscanConfig
impl UnwindSafe for DbscanConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more