public class Kendall extends GenericDistribution
Constructor and Description |
---|
Kendall(int n) |
Modifier and Type | Method and Description |
---|---|
static double |
calculate_count(double tau,
int n) |
static double |
calculate_tau(double x,
int n) |
static double |
cumulative_tau(double tau,
int n)
Cumulative distribution of Kendall distribution
|
double |
cumulative(double p,
boolean lower_tail,
boolean log_p) |
static double |
cumulative(double x,
int n)
Cumulative density function of Kendall distribution.
|
static double |
density_tau(double tau,
int n)
Density of Kendall distribution
|
double |
density(double x,
boolean log) |
static double |
density(double x,
int n)
Density of Kendall distribution
|
static double |
quantile_tau(double p,
int n) |
double |
quantile(double q,
boolean lower_tail,
boolean log_p) |
static double |
quantile(double p,
int n)
Quantile search.
|
double |
random() |
static double[] |
random(int count,
int n,
RandomEngine random) |
static double |
random(int n,
RandomEngine random)
Kendall RNG by inversion
|
cumulative_hazard, cumulative_hazard, cumulative, cumulative, cumulative, density, density, getRandomEngine, hazard, hazard, inverse_survival, inverse_survival, quantile, quantile, quantile, random, random, setRandomEngine, survival, survival, survival
public static final double calculate_tau(double x, int n)
public static final double calculate_count(double tau, int n)
public static final double density(double x, int n)
x
- This is count, not tau!n
- public static final double density_tau(double tau, int n)
tau
- This is tau, not count!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
- This is count, not tau!n
- public static final double cumulative_tau(double tau, int n)
tau
- This is tau, not count!n
- public static final double quantile(double p, int n)
p
- n
- public static final double quantile_tau(double p, int n)
public static final double random(int n, RandomEngine random)
n
- random
- public static final double[] random(int count, int n, RandomEngine random)
public double density(double x, boolean log)
density
in class GenericDistribution
public double cumulative(double p, boolean lower_tail, boolean log_p)
cumulative
in class GenericDistribution
public double quantile(double q, boolean lower_tail, boolean log_p)
quantile
in class GenericDistribution
public double random()
random
in class GenericDistribution