fn mode(&self) -> f64 {
        if self.r > 1.0 {
            f64::floor((self.r - 1.0) * (1.0 - self.p) / self.p)
        } else {
            0.0
        }
    }
/// Returns the mode for the negative binomial distribution
///
/// # Formula
///
/// ```ignore
/// if r > 1 then
///     floor((r - 1) * (1-p / p))
/// else
///     0
/// ```
Returns the mode for the negative binomial distribution
Returns the mode for the negative binomial distribution
fn mode(&self) -> f64 {
        if self.r > 1.0 {
            f64::floor((self.r - 1.0) * (1.0 - self.p) / self.p)
        } else {
            0.0
        }
    }
fn mode ( & self ) -> f64 { if self . r > 1.0 { f64 :: floor ( ( self . r - 1.0 ) * ( 1.0 - self . p ) / self . p ) } else { 0.0 } }
Returns the mode for the negative binomial distribution
Returns the mode for the negative binomial distribution
&self
&self
formula
None