#[cfg(feature = "alloc")]
extern crate alloc;
#[cfg(feature = "alloc")]
use alloc::vec::Vec;
use sightloom_core::{EventId, PatternId, SubjectId};
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
pub enum PatternKind {
TimeOfDay,
DayOfWeek,
VisitPeriodicity,
DwellDistribution,
RouteSequence,
CoOccurrence,
EventBeforeEvent,
ExpectedAbsence,
GroupFormation,
Custom,
}
#[derive(Clone, Debug, PartialEq)]
pub struct PatternRecord {
pub pattern_id: PatternId,
pub kind: PatternKind,
pub subject_id: Option<SubjectId>,
pub confidence: f32,
pub evidence_events: Vec<EventId>,
pub tag: u32,
}