pub struct ClusterLayer {
pub threshold: f32,
pub assignments: Vec<Option<usize>>,
pub num_clusters: usize,
pub clusters: HashMap<usize, Vec<usize>>,
}Expand description
A single cluster layer (one granularity level).
Fields§
§threshold: f32The distance threshold used to cut the hierarchy.
assignments: Vec<Option<usize>>Cluster assignments: point_idx -> cluster_id (or None for noise).
num_clusters: usizeNumber of clusters at this layer (excluding noise).
clusters: HashMap<usize, Vec<usize>>Cluster members: cluster_id -> Vec<point_idx>.
Trait Implementations§
Source§impl Clone for ClusterLayer
impl Clone for ClusterLayer
Source§fn clone(&self) -> ClusterLayer
fn clone(&self) -> ClusterLayer
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 moreAuto Trait Implementations§
impl Freeze for ClusterLayer
impl RefUnwindSafe for ClusterLayer
impl Send for ClusterLayer
impl Sync for ClusterLayer
impl Unpin for ClusterLayer
impl UnsafeUnpin for ClusterLayer
impl UnwindSafe for ClusterLayer
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more