pub struct CategorySummary {
pub name: String,
pub member_indices: Vec<usize>,
pub centroid_embedding: Vec<f64>,
pub centroid_position: SphericalPoint,
pub angular_spread: f64,
pub cohesion: f64,
pub member_count: usize,
pub cap_area: f64,
pub exclusivity: f64,
pub voronoi_area: f64,
pub territorial_efficiency: f64,
pub bridge_quality: f64,
}Expand description
Aggregate statistics for a single category on the outer sphere.
Computed from the projected positions of all items in that category. Every category gets a summary regardless of size — this is the foundation of the Category Enrichment Layer.
Fields§
§name: StringCategory name (as provided by the user).
member_indices: Vec<usize>Indices of member items in the pipeline’s item list.
centroid_embedding: Vec<f64>Mean embedding in high-dimensional space (pre-projection). Length = embedding dimensionality.
centroid_position: SphericalPointThe centroid projected onto the outer sphere.
angular_spread: f64Mean angular distance (radians) of members from the centroid on the projected sphere. Measures how “spread out” the category is.
cohesion: f641.0 / (1.0 + angular_spread). Higher = tighter cluster. Normalized to (0, 1].
member_count: usizeNumber of member items.
cap_area: f64Solid angle of this category’s cap on S² (steradians).
exclusivity: f64Fraction of this category’s cap not overlapped by any other. [0, 1].
voronoi_area: f64Voronoi cell area on S² (steradians).
territorial_efficiency: f64Items per steradian of Voronoi cell.
bridge_quality: f64Mean territorial-adjusted bridge strength across all outgoing edges.
0.0 if this category has no neighbors. Populated after the graph
is built in CategoryLayer::build.
Trait Implementations§
Source§impl Clone for CategorySummary
impl Clone for CategorySummary
Source§fn clone(&self) -> CategorySummary
fn clone(&self) -> CategorySummary
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for CategorySummary
impl RefUnwindSafe for CategorySummary
impl Send for CategorySummary
impl Sync for CategorySummary
impl Unpin for CategorySummary
impl UnsafeUnpin for CategorySummary
impl UnwindSafe for CategorySummary
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
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>
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 more