pub fn bayes_security_measure(bayes_risk: f64, random_guessing: f64) -> f64 {
    assert!(
        !approx_eq!(f64, random_guessing, 0.),
        "Random guessing error cannot be 0"
    );

    bayes_risk / random_guessing
}
/// Computes the Bayes security measure, as defined in [2].
Computes the Bayes security measure, as defined in [2].
Computes the Bayes security measure as defined in [ 2 ] .
pub fn bayes_security_measure(bayes_risk: f64, random_guessing: f64) -> f64 {
    assert!(
        !approx_eq!(f64, random_guessing, 0.),
        "Random guessing error cannot be 0"
    );
    bayes_risk / random_guessing
}
pub fn bayes_security_measure ( bayes_risk : f64 , random_guessing : f64 ) -> f64 { assert ! ( approx_eq ( f64 random_guessing 0. ) " " ) ; bayes_risk / random_guessing }
Computes the Bayes security measure, as defined in [2].
Computes the Bayes security measure as defined in [ 2 ] .
bayes_risk
f64
random_guessing
f64
bayes_risk
f64
random_guessing
f64