/// Computes the Additive Leakage, as defined in [1].
Computes the Additive Leakage, as defined in [1].
Computes the Additive Leakage as defined in [ 1 ] .
pub fn additive_leakage(bayes_risk: f64, random_guessing: f64) -> f64 {
    assert!(
        !approx_eq!(f64, random_guessing, 0.),
        "Random guessing error cannot be 0"
    );
    random_guessing - bayes_risk
}
pub fn additive_leakage ( bayes_risk : f64 , random_guessing : f64 ) -> f64 { assert ! ( approx_eq ( f64 random_guessing 0. ) " " ) ; random_guessing - bayes_risk }
Computes the Additive Leakage, as defined in [1].
Computes the Additive Leakage as defined in [ 1 ] .
bayes_risk
f64
random_guessing
f64