public class Wilcoxon extends Object
SYNOPSIS
#include
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
| Modifier and Type | Field and Description |
|---|---|
protected QRandomEngine |
random |
protected double[][][] |
w |
| Constructor and Description |
|---|
Wilcoxon(int m,
int n) |
| Modifier and Type | Method and Description |
|---|---|
protected double |
count(int k,
int m,
int n) |
double |
cumulative(int q,
boolean lower_tail,
boolean log_p) |
double |
density(int x,
boolean give_log) |
int |
getM() |
int |
getN() |
QRandomEngine |
getRandomEngine() |
protected void |
init(int m,
int n) |
double |
quantile(double x,
boolean lower_tail,
boolean log_p) |
double |
random() |
double |
random(QRandomEngine random) |
void |
setRandomEngine(QRandomEngine rand) |
protected QRandomEngine random
protected double[][][] w
protected void init(int m,
int n)
public int getM()
public int getN()
protected double count(int k,
int m,
int n)
public double density(int x,
boolean give_log)
public double cumulative(int q,
boolean lower_tail,
boolean log_p)
public double quantile(double x,
boolean lower_tail,
boolean log_p)
public void setRandomEngine(QRandomEngine rand)
public QRandomEngine getRandomEngine()
public double random()
public double random(QRandomEngine random)
Copyright © 2013. All rights reserved.