pub enum Linkage {
Ward,
Single,
Complete,
Average,
}Expand description
Inter-cluster distance rule driving the agglomerative merges.
Variants§
Ward
Minimises the increase in total within-cluster variance (scikit-learn’s
default). Operates on squared Euclidean distances.
Single
Distance between the two nearest members of the clusters.
Complete
Distance between the two farthest members of the clusters.
Average
Mean pairwise distance between members of the two clusters (UPGMA).
Trait Implementations§
impl Copy for Linkage
impl Eq for Linkage
impl StructuralPartialEq for Linkage
Auto Trait Implementations§
impl Freeze for Linkage
impl RefUnwindSafe for Linkage
impl Send for Linkage
impl Sync for Linkage
impl Unpin for Linkage
impl UnsafeUnpin for Linkage
impl UnwindSafe for Linkage
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