Struct std::rand::distributions::FisherF [] [src]

pub struct FisherF {
    numer: ChiSquared,
    denom: ChiSquared,
    dof_ratio: f64,
}
Unstable (rand)

: use rand from crates.io

The Fisher F distribution F(m, n).

This distribution is equivalent to the ratio of two normalised chi-squared distributions, that is, F(m,n) = (χ²(m)/m) / (χ²(n)/n).

Fields

numer
Unstable (rand)

: use rand from crates.io

denom
Unstable (rand)

: use rand from crates.io

dof_ratio
Unstable (rand)

: use rand from crates.io

Methods

impl FisherF

fn new(m: f64, n: f64) -> FisherF

Unstable (rand)

: use rand from crates.io

Create a new FisherF distribution, with the given parameter. Panics if either m or n are not positive.

Trait Implementations

impl Sample<f64> for FisherF

fn sample<R>(&mut self, rng: &mut R) -> f64 where R: Rng

impl IndependentSample<f64> for FisherF

fn ind_sample<R>(&self, rng: &mut R) -> f64 where R: Rng