pub struct GraphRelationalDetector {
pub config: GraphAnomalyConfig,
pub graph: CameraGraph,
pub baseline: Option<GraphBaseline>,
}Expand description
Graph / relational detector implementing AnomalyDetector.
Fields§
§config: GraphAnomalyConfigDetection config.
graph: CameraGraphCamera travel graph (impossible hop checks).
baseline: Option<GraphBaseline>Fitted baseline.
Implementations§
Source§impl GraphRelationalDetector
impl GraphRelationalDetector
Sourcepub fn new(config: GraphAnomalyConfig) -> Self
pub fn new(config: GraphAnomalyConfig) -> Self
Creates with config and empty graph.
Sourcepub fn with_graph(config: GraphAnomalyConfig, graph: CameraGraph) -> Self
pub fn with_graph(config: GraphAnomalyConfig, graph: CameraGraph) -> Self
Creates with config and camera graph.
Sourcepub fn set_graph(&mut self, graph: CameraGraph)
pub fn set_graph(&mut self, graph: CameraGraph)
Replaces the camera graph.
Trait Implementations§
Source§impl AnomalyDetector for GraphRelationalDetector
impl AnomalyDetector for GraphRelationalDetector
Source§fn fit(&mut self, history: &AnalysisSeries) -> Result<(), Self::Error>
fn fit(&mut self, history: &AnalysisSeries) -> Result<(), Self::Error>
Fits / refreshes internal baseline from history (optional no-op). Read more
Source§fn detect(
&mut self,
live: &AnalysisSeries,
next_id: &mut u64,
) -> Result<Vec<AnomalyEvent>, Self::Error>
fn detect( &mut self, live: &AnalysisSeries, next_id: &mut u64, ) -> Result<Vec<AnomalyEvent>, Self::Error>
Scores live series and returns backend-neutral events. Read more
Source§impl Clone for GraphRelationalDetector
impl Clone for GraphRelationalDetector
Source§impl Debug for GraphRelationalDetector
impl Debug for GraphRelationalDetector
Auto Trait Implementations§
impl Freeze for GraphRelationalDetector
impl RefUnwindSafe for GraphRelationalDetector
impl Send for GraphRelationalDetector
impl Sync for GraphRelationalDetector
impl Unpin for GraphRelationalDetector
impl UnsafeUnpin for GraphRelationalDetector
impl UnwindSafe for GraphRelationalDetector
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