pub struct EventFeatures {
pub n_events: usize,
pub span: f64,
pub mean_gap: f64,
pub std_gap: f64,
pub burstiness: f64,
pub memory: f64,
pub temporal_entropy: f64,
pub intensity_trend: f64,
pub gap_cv: f64,
pub max_gap: f64,
pub circadian_strength: f64,
}Expand description
Features extracted from event timestamps.
Fields§
§n_events: usizeNumber of events.
span: f64Total time span (last - first timestamp).
mean_gap: f64Mean inter-event interval.
std_gap: f64Standard deviation of inter-event intervals.
burstiness: f64Burstiness parameter B = (σ - μ) / (σ + μ). B = −1: perfectly regular. B = 0: Poisson. B → +1: bursty.
memory: f64Memory coefficient: correlation between consecutive gaps. M > 0: short gaps follow short gaps (clustering). M < 0: short gaps follow long gaps (alternating). M ≈ 0: no memory (Poisson-like).
temporal_entropy: f64Shannon entropy of the gap distribution (binned). Higher = more irregular/unpredictable event timing.
intensity_trend: f64Slope of event rate over time (positive = accelerating).
gap_cv: f64Coefficient of variation of gaps (std/mean).
max_gap: f64Maximum gap (longest silence).
circadian_strength: f64Strength of 24h circadian rhythm (0 = no rhythm, 1 = strong). Only meaningful if timestamps are in seconds/milliseconds.
Trait Implementations§
Source§impl Clone for EventFeatures
impl Clone for EventFeatures
Source§fn clone(&self) -> EventFeatures
fn clone(&self) -> EventFeatures
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more