Package jdistlib

Class Zipf


public class Zipf extends GenericDistribution
Zipf distribution Parts taken from VGAM
  • Field Details

    • N

      protected int N
    • s

      protected double s
  • Constructor Details

    • Zipf

      public Zipf(int N, double s)
  • Method Details

    • density

      public static final double density(int x, int N, double s, boolean give_log)
    • cumulative

      public static final double cumulative(int x, int N, double s, boolean lower_tail, boolean log_p)
    • quantile

      public static final double quantile(double p, int N, double s, boolean lower_tail, boolean log_p)
    • random

      public static final double random(int N, double s, RandomEngine random)
    • random

      public static final double[] random(int n, int N, double s, 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