Enum kodama::MethodChain
source · pub enum MethodChain {
Single,
Complete,
Average,
Weighted,
Ward,
}
Expand description
A method for computing dissimilarities between clusters in the nnchain
linkage algorithm.
The nearest-neighbor chain algorithm,
or nnchain
,
performs hierarchical clustering using a specialized algorithm that can
only compute linkage for methods that do not produce inversions in the
final dendrogram. As a result, the nnchain
algorithm cannot be used
with the Median
or Centroid
methods. Therefore, MethodChain
identifies the subset of of methods that can be used with nnchain
.
Variants§
Single
See Method::Single
.
Complete
See Method::Complete
.
Average
See Method::Average
.
Weighted
See Method::Weighted
.
Ward
See Method::Ward
.
Implementations§
source§impl MethodChain
impl MethodChain
sourcepub fn into_method(self) -> Method
pub fn into_method(self) -> Method
Convert this nnchain
linkage method into a general purpose
linkage method.
Trait Implementations§
source§impl Clone for MethodChain
impl Clone for MethodChain
source§fn clone(&self) -> MethodChain
fn clone(&self) -> MethodChain
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 Debug for MethodChain
impl Debug for MethodChain
source§impl FromStr for MethodChain
impl FromStr for MethodChain
source§impl PartialEq<MethodChain> for MethodChain
impl PartialEq<MethodChain> for MethodChain
source§fn eq(&self, other: &MethodChain) -> bool
fn eq(&self, other: &MethodChain) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.