pub struct DeltaSignals {
pub length_z: f32,
pub complexity_z: f32,
pub emotional_z: f32,
pub formality_z: f32,
pub urgency_z: f32,
pub uncertainty_z: f32,
pub baseline_size: usize,
}Expand description
Signals derived from deviation analysis.
Fields§
§length_z: f32Z-score for message length (positive = longer than usual).
complexity_z: f32Z-score for complexity (positive = more complex than usual).
emotional_z: f32Z-score for emotional intensity.
formality_z: f32Z-score for formality.
urgency_z: f32Z-score for urgency indicators.
uncertainty_z: f32Z-score for uncertainty/hedging.
baseline_size: usizeNumber of messages in the baseline.
Implementations§
Source§impl DeltaSignals
impl DeltaSignals
Sourcepub fn has_significant_deviation(&self, threshold: f32) -> bool
pub fn has_significant_deviation(&self, threshold: f32) -> bool
Check if any signal is significantly elevated (|z| > threshold).
Sourcepub fn max_deviation(&self) -> (&'static str, f32)
pub fn max_deviation(&self) -> (&'static str, f32)
Get the most extreme deviation.
Trait Implementations§
Source§impl Clone for DeltaSignals
impl Clone for DeltaSignals
Source§fn clone(&self) -> DeltaSignals
fn clone(&self) -> DeltaSignals
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DeltaSignals
impl Debug for DeltaSignals
Source§impl Default for DeltaSignals
impl Default for DeltaSignals
Source§fn default() -> DeltaSignals
fn default() -> DeltaSignals
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DeltaSignals
impl<'de> Deserialize<'de> for DeltaSignals
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DeltaSignals
impl RefUnwindSafe for DeltaSignals
impl Send for DeltaSignals
impl Sync for DeltaSignals
impl Unpin for DeltaSignals
impl UnsafeUnpin for DeltaSignals
impl UnwindSafe for DeltaSignals
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