Skip to main content

MinCutBoundary

Struct MinCutBoundary 

Source
pub struct MinCutBoundary<V: SensorVocabulary<N>, const N: usize> { /* private fields */ }
Expand description

Comfort-zone boundary via global minimum cut on the trust-weighted context graph.

Patent Claims 9–12.

Implementations§

Source§

impl<V: SensorVocabulary<N>, const N: usize> MinCutBoundary<V, N>

Source

pub fn new() -> Self

Create an empty boundary graph.

Source

pub fn report_context_with_key( &mut self, key: &ContextKey<V, N>, all_keys: &[(ContextKey<V, N>, u32)], )

Register a context key as a node, providing all existing keys for edge insertion.

If the context is already known, this is O(1). If new, inserts edges to all existing nodes with cosine similarity > EDGE_THRESHOLD (I-BNDRY-003).

Source

pub fn update_trust( &mut self, key: &ContextKey<V, N>, coherence: f32, observations: u32, )

Update trust-weighted edges for a context after a coherence change.

Recomputes Graph B weights for all edges incident to this context. If either endpoint has fewer than MIN_TRUST_OBSERVATIONS, keeps Graph A weight.

Source

pub fn min_cut_value(&self) -> f32

Current minimum cut value of the trust manifold.

Returns 0.0 if fewer than 2 nodes are registered. Patent Claim 9: boundary is computed, not configured.

Source

pub fn partition(&self) -> MinCutResult

Full minimum cut result: value and partition.

Patent Claim 10: partition is observable.

Source

pub fn node_count(&self) -> usize

Number of registered context nodes.

Trait Implementations§

Source§

impl<V: SensorVocabulary<N>, const N: usize> Default for MinCutBoundary<V, N>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl<V, const N: usize> Freeze for MinCutBoundary<V, N>

§

impl<V, const N: usize> RefUnwindSafe for MinCutBoundary<V, N>
where V: RefUnwindSafe,

§

impl<V, const N: usize> Send for MinCutBoundary<V, N>
where V: Send,

§

impl<V, const N: usize> Sync for MinCutBoundary<V, N>
where V: Sync,

§

impl<V, const N: usize> Unpin for MinCutBoundary<V, N>
where V: Unpin,

§

impl<V, const N: usize> UnsafeUnpin for MinCutBoundary<V, N>

§

impl<V, const N: usize> UnwindSafe for MinCutBoundary<V, N>
where V: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.