pub struct BridgeItem {
pub item_index: usize,
pub source_category: usize,
pub target_category: usize,
pub affinity_to_source: f64,
pub affinity_to_target: f64,
pub bridge_strength: f64,
pub classification: BridgeClassification,
pub relation: Option<RelationType>,
}Expand description
An item that semantically spans two categories.
Bridge items are closer to a foreign category’s centroid than to the median distance within their own category. They are the conceptual connectors that make cross-domain paths meaningful.
Fields§
§item_index: usizeIndex of this item in the pipeline’s item list.
source_category: usizeThe item’s own category index.
target_category: usizeThe foreign category this item bridges toward.
affinity_to_source: f64Cosine similarity to own category centroid (in high-D space).
affinity_to_target: f64Cosine similarity to foreign category centroid (in high-D space).
bridge_strength: f64Bridge strength: harmonic mean of the two affinities. Higher = equally strong connection to both domains.
classification: BridgeClassificationQuality label assigned after the full bridge set is observed.
relation: Option<RelationType>Semantic relation type, inferred heuristically. None when untyped.
Trait Implementations§
Source§impl Clone for BridgeItem
impl Clone for BridgeItem
Source§fn clone(&self) -> BridgeItem
fn clone(&self) -> BridgeItem
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 BridgeItem
impl RefUnwindSafe for BridgeItem
impl Send for BridgeItem
impl Sync for BridgeItem
impl Unpin for BridgeItem
impl UnsafeUnpin for BridgeItem
impl UnwindSafe for BridgeItem
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