/// Computes the Min-entropy leakage.
Computes the Min-entropy leakage.
Computes the Min - entropy leakage .
pub fn min_entropy_leakage(bayes_risk: f64, random_guessing: f64) -> f64 {
    assert!(
        !approx_eq!(f64, random_guessing, 0.),
        "Random guessing error cannot be 0"
    );
    -(1. - random_guessing).log(2.) + (1. - bayes_risk).log(2.)
}
pub fn min_entropy_leakage ( bayes_risk : f64 , random_guessing : f64 ) -> f64 { assert ! ( approx_eq ( f64 random_guessing 0. ) " " ) ; - ( 1. - random_guessing ) . log ( 2. ) + ( 1. - bayes_risk ) . log ( 2. ) }
Computes the Min-entropy leakage.
Computes the Min - entropy leakage .
bayes_risk
f64
random_guessing
f64