pub struct StudentizedRange {
pub k: f64,
pub df: f64,
}Expand description
The distribution of Q = (max − min)/S for k independent standard normal deviates and an
independent S = √(χ²_ν / ν) (SciPy’s studentized_range(k, df)):
F(q) = ∫₀^∞ f_S(s) W(qs) ds, with the distribution of the range
W(w) = k ∫ φ(z) (Φ(z) − Φ(z − w))^{k−1} dz and
f_S(s) = ν^{ν/2} s^{ν−1} e^{−νs²/2} / (Γ(ν/2) 2^{ν/2−1}). Both integrals are evaluated by
composite Gauss-Legendre quadrature (the inner over |z| ≤ 8.5, the outer over the part of
s holding all but 10⁻¹⁷ of its mass); df = ∞ gives the range of standard normals itself.
Fields§
§k: f64§df: f64Implementations§
Trait Implementations§
Source§impl Clone for StudentizedRange
impl Clone for StudentizedRange
Source§impl ContinuousDistribution for StudentizedRange
impl ContinuousDistribution for StudentizedRange
Source§fn ppf(&self, p: f64) -> f64
fn ppf(&self, p: f64) -> f64
By bisection on the distribution function (the default would need the moments, which are themselves integrals).
fn variance(&self) -> f64
fn skewness(&self) -> f64
Source§fn excess_kurtosis(&self) -> f64
fn excess_kurtosis(&self) -> f64
The excess kurtosis (zero for the normal distribution), as SciPy’s
stats(moments='k').Source§fn logpdf(&self, x: f64) -> f64
fn logpdf(&self, x: f64) -> f64
The log density (more accurate than
pdf(x).ln() in the tails where overridden).fn std(&self) -> f64
fn median(&self) -> f64
Source§fn interval(&self, confidence: f64) -> (f64, f64)
fn interval(&self, confidence: f64) -> (f64, f64)
The central interval containing a fraction
confidence of the probability.Source§fn log_likelihood(&self, data: &[f64]) -> f64
fn log_likelihood(&self, data: &[f64]) -> f64
Σ log f(xᵢ).impl Copy for StudentizedRange
Source§impl Debug for StudentizedRange
impl Debug for StudentizedRange
Source§impl PartialEq for StudentizedRange
impl PartialEq for StudentizedRange
impl StructuralPartialEq for StudentizedRange
Auto Trait Implementations§
impl Freeze for StudentizedRange
impl RefUnwindSafe for StudentizedRange
impl Send for StudentizedRange
impl Sync for StudentizedRange
impl Unpin for StudentizedRange
impl UnsafeUnpin for StudentizedRange
impl UnwindSafe for StudentizedRange
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more