Struct linfa_clustering::DbscanParams
source · [−]pub struct DbscanParams<F: Float, D: Distance<F>, N: NearestNeighbour>(_);
Expand description
Helper struct for building a set of DBSCAN hyperparameters
Implementations
sourceimpl<F: Float, D: Distance<F>, N: NearestNeighbour> DbscanParams<F, D, N>
impl<F: Float, D: Distance<F>, N: NearestNeighbour> DbscanParams<F, D, N>
Trait Implementations
sourceimpl<F: Debug + Float, D: Debug + Distance<F>, N: Debug + NearestNeighbour> Debug for DbscanParams<F, D, N>
impl<F: Debug + Float, D: Debug + Distance<F>, N: Debug + NearestNeighbour> Debug for DbscanParams<F, D, N>
sourceimpl<F: Float, D: Distance<F>, N: NearestNeighbour> ParamGuard for DbscanParams<F, D, N>
impl<F: Float, D: Distance<F>, N: NearestNeighbour> ParamGuard for DbscanParams<F, D, N>
type Checked = DbscanValidParams<F, D, N>
type Checked = DbscanValidParams<F, D, N>
The checked hyperparameters
type Error = DbscanParamsError
type Error = DbscanParamsError
Error type resulting from failed hyperparameter checking
sourcefn check_ref(&self) -> Result<&Self::Checked, Self::Error>
fn check_ref(&self) -> Result<&Self::Checked, Self::Error>
Checks the hyperparameters and returns a reference to the checked hyperparameters if successful Read more
sourcefn check(self) -> Result<Self::Checked, Self::Error>
fn check(self) -> Result<Self::Checked, Self::Error>
Checks the hyperparameters and returns the checked hyperparameters if successful
sourcefn check_unwrap(self) -> Self::Checked
fn check_unwrap(self) -> Self::Checked
Calls check()
and unwraps the result
impl<F: Float, D: Distance<F>, N: NearestNeighbour> TransformGuard for DbscanParams<F, D, N>
Auto Trait Implementations
impl<F, D, N> RefUnwindSafe for DbscanParams<F, D, N> where
D: RefUnwindSafe,
F: RefUnwindSafe,
N: RefUnwindSafe,
impl<F, D, N> Send for DbscanParams<F, D, N> where
N: Send,
impl<F, D, N> Sync for DbscanParams<F, D, N> where
N: Sync,
impl<F, D, N> Unpin for DbscanParams<F, D, N> where
D: Unpin,
F: Unpin,
N: Unpin,
impl<F, D, N> UnwindSafe for DbscanParams<F, D, N> where
D: UnwindSafe,
F: UnwindSafe,
N: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more