Documentation of 'umontreal.iro.lecuyer.probdist.AndersonDarlingDistQuick' Java class
AndersonDarlingDistQuick
umontreal.iro.lecuyer.probdist

Class AndersonDarlingDistQuick

    • Constructor Detail

      • AndersonDarlingDistQuick

        public AndersonDarlingDistQuick(int n)
        Constructs an distribution for a sample of size n.
    • Method Detail

      • density

        public double density(double x)
        Description copied from class: ContinuousDistribution
        Returns f (x), the density evaluated at x.
        Overrides:
        density in class AndersonDarlingDist
        Parameters:
        x - value at which the density is evaluated
        Returns:
        density function evaluated at x
      • cdf

        public double cdf(double x)
        Description copied from interface: Distribution
        Returns the distribution function F(x).
        Specified by:
        cdf in interface Distribution
        Overrides:
        cdf in class AndersonDarlingDist
        Parameters:
        x - value at which the distribution function is evaluated
        Returns:
        distribution function evaluated at x
      • barF

        public double barF(double x)
        Description copied from class: ContinuousDistribution
        Returns the complementary distribution function. The default implementation computes bar(F)(x) = 1 - F(x).
        Specified by:
        barF in interface Distribution
        Overrides:
        barF in class AndersonDarlingDist
        Parameters:
        x - value at which the complementary distribution function is evaluated
        Returns:
        complementary distribution function evaluated at x
      • inverseF

        public double inverseF(double u)
        Description copied from class: ContinuousDistribution
        Returns the inverse distribution function x = F-1(u). Restrictions: u∈[0, 1].
        Specified by:
        inverseF in interface Distribution
        Overrides:
        inverseF in class AndersonDarlingDist
        Parameters:
        u - value at which the inverse distribution function is evaluated
        Returns:
        the inverse distribution function evaluated at u
      • density

        public static double density(int n,
                                     double x)
        Computes the density of the distribution with parameter n.
      • cdf

        public static double cdf(int n,
                                 double x)
        Computes the distribution function Fn(x) with parameter n. The asymptotic distribution F(x) = limn -> ∞Fn(x) was first computed by numerical integration. Then a linear correction O(1/n) obtained by simulation was added. The absolute error on Fn(x) is estimated to be less than 0.001 for n > 6, except far in the tails. For n = 2, 3, 4, 6, it is estimated to be less than 0.04, 0.01, 0.005, 0.002, respectively. For n = 1, the method returns the exact value F1(x) = (1 - 4e^-x-1)1/2, for x >= ln(4) - 1.
      • barF

        public static double barF(int n,
                                  double x)
        Computes the complementary distribution function bar(F)n(x) with parameter n.
      • inverseF

        public static double inverseF(int n,
                                      double u)
        Computes the inverse x = Fn-1(u) of the distribution with parameter n.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.