pub struct DriftWeights {
pub state: f32,
pub causal: f32,
pub context: f32,
}Expand description
Divergence weights for the three DriftMeter signals.
Must sum to 1.0 (same constraint as ScoringWeights).
Fields§
§state: f32Weight for agent state divergence signal.
causal: f32Weight for causal (DAG lane) divergence signal.
context: f32Weight for context overlap divergence signal.
Implementations§
Source§impl DriftWeights
impl DriftWeights
Sourcepub fn validate(&self) -> Result<(), DriftWeightsError>
pub fn validate(&self) -> Result<(), DriftWeightsError>
Validate weights are finite, non-negative, and sum to 1.0 (±epsilon).
Trait Implementations§
Source§impl Clone for DriftWeights
impl Clone for DriftWeights
Source§fn clone(&self) -> DriftWeights
fn clone(&self) -> DriftWeights
Returns a duplicate of the value. Read more
1.0.0 · 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 DriftWeights
impl Debug for DriftWeights
Source§impl Default for DriftWeights
impl Default for DriftWeights
Source§impl<'de> Deserialize<'de> for DriftWeights
impl<'de> Deserialize<'de> for DriftWeights
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
Source§impl PartialEq for DriftWeights
impl PartialEq for DriftWeights
Source§impl Serialize for DriftWeights
impl Serialize for DriftWeights
impl StructuralPartialEq for DriftWeights
Auto Trait Implementations§
impl Freeze for DriftWeights
impl RefUnwindSafe for DriftWeights
impl Send for DriftWeights
impl Sync for DriftWeights
impl Unpin for DriftWeights
impl UnwindSafe for DriftWeights
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