pub struct KeyboardFeatures {Show 13 fields
pub typing_rate: f64,
pub pause_count: u32,
pub mean_pause_ms: f64,
pub latency_variability: f64,
pub hold_time_mean: f64,
pub burst_index: f64,
pub session_continuity: f64,
pub typing_tap_count: u32,
pub typing_cadence_stability: f64,
pub typing_gap_ratio: f64,
pub typing_interaction_intensity: f64,
pub keyboard_scroll_rate: f64,
pub navigation_key_count: u32,
}Expand description
Keyboard-derived behavioral features.
Note: Typing metrics (typing_rate, typing_tap_count, etc.) are computed from typing keys ONLY. Navigation keys (arrows, page up/down, home/end) are tracked separately via keyboard_scroll_rate to avoid inflating typing metrics during navigation-heavy text editing sessions.
Fields§
§typing_rate: f64Typing keys per second (excludes navigation keys)
pause_count: u32Number of idle gaps (pauses) per window
mean_pause_ms: f64Average pause duration in milliseconds
latency_variability: f64Standard deviation of inter-key intervals
hold_time_mean: f64Average key hold duration in milliseconds
burst_index: f64Burstiness index (0-1, higher = more bursty)
session_continuity: f64Ratio of active typing time to total window time
typing_tap_count: u32Total number of discrete typing tap events (excludes navigation keys)
typing_cadence_stability: f64Normalized rhythmic consistency score (0-1, higher = more regular timing)
typing_gap_ratio: f64Proportion of inter-tap intervals classified as gaps
typing_interaction_intensity: f64Composite metric combining speed, cadence stability, and gap behavior (0-1)
keyboard_scroll_rate: f64Navigation key events per second (arrow keys, page up/down, home/end) Tracked separately from typing to distinguish keyboard scrolling from mouse scrolling
Total navigation key events in the window
Trait Implementations§
Source§impl Clone for KeyboardFeatures
impl Clone for KeyboardFeatures
Source§fn clone(&self) -> KeyboardFeatures
fn clone(&self) -> KeyboardFeatures
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more