pub struct RiskWeights {
pub criticality: f64,
pub coupling: f64,
pub test_gap: f64,
pub sensitivity: f64,
}Fields§
§criticality: f64§coupling: f64§test_gap: f64§sensitivity: f64Implementations§
Source§impl RiskWeights
impl RiskWeights
Sourcepub fn normalized(&self) -> Self
pub fn normalized(&self) -> Self
Normalize weights so they sum to 1.0, preserving relative proportions.
Trait Implementations§
Source§impl Clone for RiskWeights
impl Clone for RiskWeights
Source§fn clone(&self) -> RiskWeights
fn clone(&self) -> RiskWeights
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 RiskWeights
impl Debug for RiskWeights
Auto Trait Implementations§
impl Freeze for RiskWeights
impl RefUnwindSafe for RiskWeights
impl Send for RiskWeights
impl Sync for RiskWeights
impl Unpin for RiskWeights
impl UnsafeUnpin for RiskWeights
impl UnwindSafe for RiskWeights
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