pub enum Linkage {
Single,
Complete,
Average,
Ward,
}Expand description
How the distance between two clusters is defined from the distances between their points.
Variants§
Single
Closest pair: finds elongated, chained clusters, sensitive to noise bridges.
Complete
Farthest pair: compact, similar-diameter clusters.
Average
Mean of all pairs (UPGMA): a compromise between single and complete.
Ward
Minimum increase in within-cluster variance (Euclidean data only); tends to give compact, evenly sized clusters.
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