Skip to main content

Crate sightloom_analysis

Crate sightloom_analysis 

Source
Expand description

Zone analytics, pattern mining, and backend-neutral anomaly events.

Structs§

ZoneAnalytics
Polygon zone analytics with hysteresis, dwell, and occupancy.
ZoneAnalyticsConfig
Configuration for crate::ZoneAnalytics.

Enums§

AnalyticsError
An error produced by zone analytics.
AnalyticsEvent
Analytics events emitted by enhanced zone monitors.
AnchorPolicy
Which point of a detection is tested against a zone.

Functions§

analytics_to_envelope
Builds an EventEnvelope from an analytics event.
day_of_week_ns
Day of week 0..7 (0 = epoch day alignment) from nanoseconds.
hour_of_day_ns
Hour of day 0..24 from nanoseconds since an arbitrary epoch.
mean
Arithmetic mean of a non-empty finite sample.
median
Median of a non-empty sample (sorts a copy into scratch).
stddev
Population standard deviation (sqrt(mean((x-mu)^2))).
track_of
Convenience for envelopes that already know their track id from the event.
z_score
Absolute z-score |x - mu| / sigma (0 when sigma is ~0).