fn median(&self) -> f64 {
        if self.freedom < 1.0 {
            // if k is small, calculate using expansion of formula
            self.freedom - 2.0 / 3.0 + 12.0 / (81.0 * self.freedom)
                - 8.0 / (729.0 * self.freedom * self.freedom)
        } else {
            // if k is large enough, median heads toward k - 2/3
            self.freedom - 2.0 / 3.0
        }
    }
/// Returns the median  of the chi-squared distribution
///
/// # Formula
///
/// ```ignore
/// k * (1 - (2 / 9k))^3
/// ```
Returns the median  of the chi-squared distribution
Returns the median of the chi - squared distribution
fn median(&self) -> f64 {
        if self.freedom < 1.0 {
            // if k is small, calculate using expansion of formula
            self.freedom - 2.0 / 3.0 + 12.0 / (81.0 * self.freedom)
                - 8.0 / (729.0 * self.freedom * self.freedom)
        } else {
            // if k is large enough, median heads toward k - 2/3
            self.freedom - 2.0 / 3.0
        }
    }
fn median ( & self ) -> f64 { if self . freedom < 1.0 { // if k is small, calculate using expansion of formula self . freedom - 2.0 / 3.0 + 12.0 / ( 81.0 * self . freedom ) - 8.0 / ( 729.0 * self . freedom * self . freedom ) } else { // if k is large enough, median heads toward k - 2/3 self . freedom - 2.0 / 3.0 } }
Returns the median  of the chi-squared distribution
Returns the median of the chi - squared distribution
&self
&self
formula
None