pub struct CoherenceEngine { /* private fields */ }Expand description
Coherence engine for computing signals from graph structure
Implementations§
Source§impl CoherenceEngine
impl CoherenceEngine
Sourcepub fn new(config: CoherenceConfig) -> Self
pub fn new(config: CoherenceConfig) -> Self
Create a new coherence engine
Sourcepub fn node_count(&self) -> usize
pub fn node_count(&self) -> usize
Get node count
Sourcepub fn edge_count(&self) -> usize
pub fn edge_count(&self) -> usize
Get edge count
Sourcepub fn build_from_records(&mut self, records: &[DataRecord])
pub fn build_from_records(&mut self, records: &[DataRecord])
Build graph from data records
Sourcepub fn compute_from_records(
&mut self,
records: &[DataRecord],
) -> Result<Vec<CoherenceSignal>>
pub fn compute_from_records( &mut self, records: &[DataRecord], ) -> Result<Vec<CoherenceSignal>>
Compute coherence signals from records
Sourcepub fn compute_signals(&mut self) -> Result<Vec<CoherenceSignal>>
pub fn compute_signals(&mut self) -> Result<Vec<CoherenceSignal>>
Compute coherence signals over the current graph
Sourcepub fn detect_events(&self, threshold: f64) -> Vec<CoherenceEvent>
pub fn detect_events(&self, threshold: f64) -> Vec<CoherenceEvent>
Detect coherence events between windows
Sourcepub fn signals(&self) -> &[CoherenceSignal]
pub fn signals(&self) -> &[CoherenceSignal]
Get historical signals
Sourcepub fn boundaries(&self) -> &[CoherenceBoundary]
pub fn boundaries(&self) -> &[CoherenceBoundary]
Get tracked boundaries
Auto Trait Implementations§
impl Freeze for CoherenceEngine
impl RefUnwindSafe for CoherenceEngine
impl Send for CoherenceEngine
impl Sync for CoherenceEngine
impl Unpin for CoherenceEngine
impl UnwindSafe for CoherenceEngine
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> 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