pub struct DBSCAN { /* private fields */ }Expand description
DBSCAN Model
Implements clustering using the DBSCAN algorithm
via the UnSupModel trait.
Implementations§
Source§impl DBSCAN
impl DBSCAN
Sourcepub fn new(eps: f64, min_points: usize) -> DBSCAN
pub fn new(eps: f64, min_points: usize) -> DBSCAN
Create a new DBSCAN model with a given distance episilon and minimum points per cluster.
Sourcepub fn set_predictive(&mut self, predictive: bool)
pub fn set_predictive(&mut self, predictive: bool)
Set predictive to true if the model is to be used to classify future points.
If the model is set as predictive then the input data will be cloned during training.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DBSCAN
impl RefUnwindSafe for DBSCAN
impl Send for DBSCAN
impl Sync for DBSCAN
impl Unpin for DBSCAN
impl UnwindSafe for DBSCAN
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