pub struct HierarchicalOptions {
pub num_clusters: usize,
pub linkage: LinkageMethod,
pub metric: DistanceMetric,
pub distance_threshold: Option<f64>,
}Expand description
Options for hierarchical clustering
Fields§
§num_clusters: usizeNumber of clusters to extract
linkage: LinkageMethodLinkage method
metric: DistanceMetricDistance metric
distance_threshold: Option<f64>Distance threshold (alternative to num_clusters)
Trait Implementations§
Source§impl Clone for HierarchicalOptions
impl Clone for HierarchicalOptions
Source§fn clone(&self) -> HierarchicalOptions
fn clone(&self) -> HierarchicalOptions
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 Debug for HierarchicalOptions
impl Debug for HierarchicalOptions
Auto Trait Implementations§
impl Freeze for HierarchicalOptions
impl RefUnwindSafe for HierarchicalOptions
impl Send for HierarchicalOptions
impl Sync for HierarchicalOptions
impl Unpin for HierarchicalOptions
impl UnsafeUnpin for HierarchicalOptions
impl UnwindSafe for HierarchicalOptions
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