Enum linfa_hierarchical::Criterion
source · pub enum Criterion<F: Float> {
NumClusters(usize),
Distance(F),
}
Expand description
Criterion when to stop merging
The criterion defines at which point the merging process should stop. This can be either, when a certain number of clusters is reached, or the distance becomes larger than a maximal distance.
Variants§
Trait Implementations§
source§impl<F: PartialEq + Float> PartialEq for Criterion<F>
impl<F: PartialEq + Float> PartialEq for Criterion<F>
impl<F: Float> StructuralPartialEq for Criterion<F>
Auto Trait Implementations§
impl<F> RefUnwindSafe for Criterion<F>where
F: RefUnwindSafe,
impl<F> Send for Criterion<F>
impl<F> Sync for Criterion<F>
impl<F> Unpin for Criterion<F>
impl<F> UnwindSafe for Criterion<F>where
F: UnwindSafe,
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