pub struct DomainGroup {
pub member_categories: Vec<usize>,
pub category_names: Vec<String>,
pub centroid: SphericalPoint,
pub angular_spread: f64,
pub cohesion: f64,
pub total_items: usize,
}Expand description
A cluster of related categories detected from sphere geometry.
Fields§
§member_categories: Vec<usize>Indices of member categories in the CategoryLayer summaries vec.
category_names: Vec<String>Category names for convenience.
centroid: SphericalPointCentroid of the group on S² (mean of member centroids).
angular_spread: f64Angular spread of the group (mean distance of members from group centroid).
cohesion: f64Cohesion: 1 / (1 + angular_spread).
total_items: usizeTotal items across all member categories.
Trait Implementations§
Source§impl Clone for DomainGroup
impl Clone for DomainGroup
Source§fn clone(&self) -> DomainGroup
fn clone(&self) -> DomainGroup
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 moreAuto Trait Implementations§
impl Freeze for DomainGroup
impl RefUnwindSafe for DomainGroup
impl Send for DomainGroup
impl Sync for DomainGroup
impl Unpin for DomainGroup
impl UnsafeUnpin for DomainGroup
impl UnwindSafe for DomainGroup
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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