Struct linfa_clustering::OpticsParams
source · pub struct OpticsParams<F, D, N>(_);
Implementations§
source§impl<F: Float, D, N> OpticsParams<F, D, N>
impl<F: Float, D, N> OpticsParams<F, D, N>
pub fn new(min_points: usize, dist_fn: D, nn_algo: N) -> Self
sourcepub fn tolerance(self, tolerance: F) -> Self
pub fn tolerance(self, tolerance: F) -> Self
Distance between points for them to be considered neighbors. Compared to DBSCAN this parameter isn’t strictly necessary but improves execution time by not considering every point. If the tolerance is too low the distances calculated are undefined and no clusters will be returned.
Trait Implementations§
source§impl<F: Clone, D: Clone, N: Clone> Clone for OpticsParams<F, D, N>
impl<F: Clone, D: Clone, N: Clone> Clone for OpticsParams<F, D, N>
source§fn clone(&self) -> OpticsParams<F, D, N>
fn clone(&self) -> OpticsParams<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: Float, D, N> ParamGuard for OpticsParams<F, D, N>
impl<F: Float, D, N> ParamGuard for OpticsParams<F, D, N>
§type Checked = OpticsValidParams<F, D, N>
type Checked = OpticsValidParams<F, D, N>
The checked hyperparameters
§type Error = OpticsError
type Error = OpticsError
Error type resulting from failed hyperparameter checking
source§fn check_ref(&self) -> Result<&Self::Checked, OpticsError>
fn check_ref(&self) -> Result<&Self::Checked, OpticsError>
Checks the hyperparameters and returns a reference to the checked hyperparameters if
successful Read more
source§fn check(self) -> Result<Self::Checked, OpticsError>
fn check(self) -> Result<Self::Checked, OpticsError>
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