Package jdistlib
Class Wilcoxon
java.lang.Object
jdistlib.generic.GenericDistribution
jdistlib.Wilcoxon
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 Summary
FieldsModifier and TypeFieldDescriptionprotected final intprotected final intprotected final int[]protected final double[]Fields inherited from class jdistlib.generic.GenericDistribution
random -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected doublecount(int k, int m, int n) doublecumulative(double p, boolean lower_tail, boolean log_p) doublecumulative(int q, boolean lower_tail, boolean log_p) doubledensity(double x, boolean log) doubledensity(int x, boolean give_log) intgetM()intgetN()doublequantile(double x, boolean lower_tail, boolean log_p) doublerandom()Methods inherited from class jdistlib.generic.GenericDistribution
copyBackward, cumulative, cumulative, cumulative, cumulative_hazard, cumulative_hazard, cumulativeInto, density, density, densityInto, getRandomEngine, hazard, hazard, inverse_survival, inverse_survival, quantile, quantile, quantile, quantileInto, random, random, randomInto, setRandomEngine, survival, survival, survival
-
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:
quantilein classGenericDistribution
-
random
public double random()- Specified by:
randomin classGenericDistribution
-
density
public double density(double x, boolean log) - Specified by:
densityin classGenericDistribution
-
cumulative
public double cumulative(double p, boolean lower_tail, boolean log_p) - Specified by:
cumulativein classGenericDistribution
-