public class Kendall extends Object
| Constructor and Description |
|---|
Kendall() |
| Modifier and Type | Method and Description |
|---|---|
static double |
cumulative(double x,
int n)
Cumulative density function of Kendall distribution.
|
static double |
density(double x,
int n) |
static double |
quantile(double p,
int x)
Quantile search by Cornish-Fisher expansion.
|
static double |
random(int x,
QRandomEngine random)
Kendall RNG by inversion -- WARNING: Untested
|
public static final double density(double x,
int n)
public static final double cumulative(double x,
int n)
Kendall statistics: x = round((rho + 1) * n * (n-1) / 4);
Two-sided test: min(1, 2*((q > n*(n-1)/4) ? 1-cumulative(x-1,n) : cumulative(x,n)));
Greater test: 1-cumulative(x-1,n)
Less test: cumulative(x,n)
x - n - public static final double quantile(double p,
int x)
p - x - public static final double random(int x,
QRandomEngine random)
x - random - Copyright © 2013. All rights reserved.