Package jdistlib.evd

Class Order


public class Order extends GenericDistribution
Order distribution. Taken from EVD package of R
  • Field Details

    • mlen

      protected int mlen
    • j

      protected int j
    • largest

      protected boolean largest
    • dist

      protected GenericDistribution dist
  • Constructor Details

  • Method Details

    • density

      public static final double density(double x, GenericDistribution dist, int mlen, int j, boolean largest, boolean log)
    • cumulative

      public static final double cumulative(double q, GenericDistribution dist, int mlen, int j, boolean largest, boolean lower_tail)
    • cumulative

      public static final double cumulative(double q, GenericDistribution dist, int mlen, int j, boolean largest, boolean lower_tail, boolean log_p)
    • quantile

      public static final double quantile(double q, GenericDistribution dist, int mlen, int j, boolean largest, boolean lower_tail, boolean log_p)
      Find the quantile of order statistics. WARNING: UNTESTED!!!
      Parameters:
      q -
      dist -
      mlen -
      j -
      largest -
      lower_tail -
      log_p -
      Returns:
      Quantile
    • random

      public static final double random(GenericDistribution dist, int mlen, int j, boolean largest, RandomEngine random)
    • random

      public static final double[] random(int n, GenericDistribution dist, int mlen, int j, boolean largest, 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