Package jdistlib

Class Wilcoxon


public class Wilcoxon extends GenericDistribution
  SYNOPSIS

    #include <Rmath.h>
    double dwilcox(double x, double m, double n, int give_log)
    double pwilcox(double x, double m, double n, int lower_tail, int log_p)
    double qwilcox(double x, double m, double n, int lower_tail, int log_p);
    double rwilcox(double m, double n)

  DESCRIPTION

    dwilcox     The density of the Wilcoxon distribution.
    pwilcox     The distribution function of the Wilcoxon distribution.
    qwilcox     The quantile function of the Wilcoxon distribution.
    rwilcox     Random variates from the Wilcoxon distribution. 

NOTE: Since the computation of Wilcoxon distribution is highly dependent on the matrix w, the dimensions of which depends on m and n (parameters of the Wilcoxon distribution), I decided to make this class as dynamic. -- Roby Joehanes

  • Field Details

    • m

      protected final int m
    • n

      protected final int n
    • w

      protected final double[] w
    • sigma

      protected final int[] sigma
  • Constructor Details

    • Wilcoxon

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

    • getM

      public int getM()
    • getN

      public int getN()
    • count

      protected double count(int k, int m, int n)
    • density

      public double density(int x, boolean give_log)
    • cumulative

      public double cumulative(int q, boolean lower_tail, boolean log_p)
    • quantile

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

      public double random()
      Specified by:
      random in class GenericDistribution
    • 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