pub struct StructuralGroup {
pub clone_type: CloneClass,
pub confidence: Confidence,
pub canonical: usize,
pub members: Vec<usize>,
pub medoid_similarities: Vec<f64>,
pub min_pairwise: f64,
}Expand description
A cohesive clone group: a medoid plus the members that cleared both the medoid constraint and the complete-linkage floor.
Fields§
§clone_type: CloneClassThe weakest clone class among the group’s internal edges (a group is no stronger than its loosest accepted pair).
confidence: ConfidenceThe weakest confidence among the group’s internal edges.
canonical: usizeThe medoid: the group’s canonical instance (a unit index).
members: Vec<usize>Member unit indices, the medoid first, then the rest by ascending key.
medoid_similarities: Vec<f64>Similarity of each member to the medoid, parallel to Self::members
(the medoid’s own entry is 1.0).
min_pairwise: f64The weakest pairwise similarity inside the group: its cohesion, at or
above GroupingConfig::min_pairwise_similarity.
Trait Implementations§
Source§impl Clone for StructuralGroup
impl Clone for StructuralGroup
Source§fn clone(&self) -> StructuralGroup
fn clone(&self) -> StructuralGroup
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 StructuralGroup
impl Debug for StructuralGroup
Source§impl PartialEq for StructuralGroup
impl PartialEq for StructuralGroup
impl StructuralPartialEq for StructuralGroup
Auto Trait Implementations§
impl Freeze for StructuralGroup
impl RefUnwindSafe for StructuralGroup
impl Send for StructuralGroup
impl Sync for StructuralGroup
impl Unpin for StructuralGroup
impl UnsafeUnpin for StructuralGroup
impl UnwindSafe for StructuralGroup
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