pub struct ConsensusClusters<F: BixverseFloat> {
pub labels: Vec<Option<usize>>,
pub local_density: Vec<F>,
pub kept: Vec<usize>,
pub silhouette: Vec<F>,
pub stability: F,
pub sizes: Vec<usize>,
pub consensus: Mat<F>,
pub n_dropped: usize,
pub n_empty_clusters: usize,
}Expand description
Diagnostics from clustering the pooled components at one k.
Fields§
§labels: Vec<Option<usize>>Cluster label per pooled component, None if the component was dropped.
Length k * n_runs, indexed the same way as w_all’s columns.
local_density: Vec<F>Mean cosine distance to the nearest neighbours, per pooled component.
infinity for components dropped as collapsed. Plot this to pick a
density_threshold.
kept: Vec<usize>Pooled indices of the surviving components, ascending.
silhouette: Vec<F>Silhouette per survivor, aligned with kept.
stability: FMean silhouette over the survivors. The stability score.
sizes: Vec<usize>Number of survivors per cluster. Length k.
consensus: Mat<F>Per-cluster median component, shape k x dim, rows renormalised to unit
L2. dim is the feature count for ConsensusTarget::HRows and the
sample count for ConsensusTarget::WColumns.
n_dropped: usizeComponents removed, whether collapsed or filtered out.
n_empty_clusters: usizeClusters that ended up with no members.
Trait Implementations§
Source§impl<F: Clone + BixverseFloat> Clone for ConsensusClusters<F>
impl<F: Clone + BixverseFloat> Clone for ConsensusClusters<F>
Auto Trait Implementations§
impl<F> Freeze for ConsensusClusters<F>
impl<F> RefUnwindSafe for ConsensusClusters<F>
impl<F> Send for ConsensusClusters<F>
impl<F> Sync for ConsensusClusters<F>
impl<F> Unpin for ConsensusClusters<F>
impl<F> UnsafeUnpin for ConsensusClusters<F>
impl<F> UnwindSafe for ConsensusClusters<F>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T, U> Imply<T> for U
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> ⓘ
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> ⓘ
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.