Package jdistlib

Class Ansari


public class Ansari extends GenericDistribution
Ansari-Bradley test statistic
  • Field Details

    • m

      protected int m
    • n

      protected int n
    • w

      protected double[][][] w
  • Constructor Details

    • Ansari

      public Ansari(int m, int n)
  • Method Details

    • density

      public static final double[] density(int[] x, int m, int n)
    • density

      public static final double density(int x, int m, int n)
    • cumulative

      public static final double[] cumulative(int[] x, int m, int n)
    • cumulative

      public static final double cumulative(int x, int m, int n, boolean lower_tail)
    • cumulative

      public static final double[] cumulative(int[] x, int m, int n, boolean lower_tail)
    • cumulative

      public static final double cumulative(int x, int m, int n)
    • cumulative

      public static final double cumulative(int x, int m, int n, double[][][] w)
    • cumulative

      public static final double cumulative(int x, int m, int n, double[][][] w, boolean lower_tail)
    • quantile

      public static final int[] quantile(double[] x, int m, int n)
    • quantile

      public static final int[] quantile(double[] x, int m, int n, double[][][] w)
    • quantile

      public static final int quantile(double x, int m, int n)
    • quantile

      public static final int quantile(double xi, int m, int n, double[][][] w)
    • random

      public static final double random(int m, int n, RandomEngine random)
      Ansari RNG by inversion -- WARNING: Untested
      Parameters:
      m -
      n -
      random -
      Returns:
      random variate of Ansari
    • random

      public static final double random(int m, int n, double[][][] w, RandomEngine random)
    • random

      public static final double[] random(int count, int m, int n, RandomEngine random)
    • random

      public static final double[] random(int count, int m, int n, double[][][] w, RandomEngine random)
    • density

      public double density(double x, boolean log)
      Specified by:
      density in class GenericDistribution
    • cumulative

      public double cumulative(double p, boolean lower_tail, boolean log_p)
      Specified by:
      cumulative in class GenericDistribution
    • quantile

      public double quantile(double q, boolean lower_tail, boolean log_p)
      Specified by:
      quantile in class GenericDistribution
    • random

      public double random()
      Specified by:
      random in class GenericDistribution