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§
source§impl<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§
source§impl<F: Clone + Float, D: Clone + Distance<F>, N: Clone + NearestNeighbour> Clone for DbscanParams<F, D, N>
impl<F: Clone + Float, D: Clone + Distance<F>, N: Clone + NearestNeighbour> Clone for DbscanParams<F, D, N>
source§fn clone(&self) -> DbscanParams<F, D, N>
fn clone(&self) -> DbscanParams<F, D, N>
Returns a copy 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<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>
source§impl<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
source§fn 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
source§fn 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
source§fn check_unwrap(self) -> Self::Checkedwhere
Self: Sized,
fn check_unwrap(self) -> Self::Checkedwhere
Self: Sized,
Calls
check()
and unwraps the result