pub struct DbscanParams<F: Float, D: Distance<F>, N: NearestNeighbour>(/* private fields */);
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 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<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>
Source§type Checked = DbscanValidParams<F, D, N>
type Checked = DbscanValidParams<F, D, N>
The checked hyperparameters
Source§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
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 resultSource§impl<F: PartialEq + Float, D: PartialEq + Distance<F>, N: PartialEq + NearestNeighbour> PartialEq for DbscanParams<F, D, N>
impl<F: PartialEq + Float, D: PartialEq + Distance<F>, N: PartialEq + NearestNeighbour> PartialEq for DbscanParams<F, D, N>
impl<F: Float, D: Distance<F>, N: NearestNeighbour> StructuralPartialEq for DbscanParams<F, D, N>
impl<F: Float, D: Distance<F>, N: NearestNeighbour> TransformGuard for DbscanParams<F, D, N>
Auto Trait Implementations§
impl<F, D, N> Freeze for DbscanParams<F, D, N>
impl<F, D, N> RefUnwindSafe for DbscanParams<F, D, N>
impl<F, D, N> Send for DbscanParams<F, D, N>
impl<F, D, N> Sync for DbscanParams<F, D, N>
impl<F, D, N> Unpin for DbscanParams<F, D, N>
impl<F, D, N> UnwindSafe for DbscanParams<F, D, N>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more