pub struct CausalAnalyzer { /* private fields */ }Expand description
Analyzer for finding causal chains in the knowledge graph
Uses depth-first search with temporal validation to find causal paths.
Implementations§
Source§impl CausalAnalyzer
impl CausalAnalyzer
Sourcepub fn new(graph: Arc<KnowledgeGraph>) -> Self
pub fn new(graph: Arc<KnowledgeGraph>) -> Self
Sourcepub fn with_min_confidence(self, min_confidence: f32) -> Self
pub fn with_min_confidence(self, min_confidence: f32) -> Self
Set minimum confidence threshold
Sourcepub fn with_min_causal_strength(self, min_causal_strength: f32) -> Self
pub fn with_min_causal_strength(self, min_causal_strength: f32) -> Self
Set minimum causal strength threshold
Sourcepub fn with_temporal_consistency(self, required: bool) -> Self
pub fn with_temporal_consistency(self, required: bool) -> Self
Enable/disable temporal consistency requirement
Sourcepub fn find_causal_chains(
&self,
cause: &EntityId,
effect: &EntityId,
max_depth: usize,
) -> Result<Vec<CausalChain>>
pub fn find_causal_chains( &self, cause: &EntityId, effect: &EntityId, max_depth: usize, ) -> Result<Vec<CausalChain>>
Auto Trait Implementations§
impl Freeze for CausalAnalyzer
impl RefUnwindSafe for CausalAnalyzer
impl Send for CausalAnalyzer
impl Sync for CausalAnalyzer
impl Unpin for CausalAnalyzer
impl UnsafeUnpin for CausalAnalyzer
impl UnwindSafe for CausalAnalyzer
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