public class Spearman extends GenericDistribution
| Constructor and Description |
|---|
Spearman(int n) |
| Modifier and Type | Method and Description |
|---|---|
static double |
cumulative_as89(double is,
int n,
boolean lower_tail)
Spearman cumulative distribution.
|
static double |
cumulative_t(double is,
int n,
boolean lower_tail)
Spearman cumulative distribution function, approximation using T (df=n-2)
|
double |
cumulative(double p,
boolean lower_tail,
boolean log_p) |
static double |
cumulative(double is,
int n,
boolean lower_tail)
Spearman exact cumulative distribution function for n <= 22.
|
double |
density(double x,
boolean log)
Density.
|
static double |
density(double is,
int n)
Density.
|
static void |
main(java.lang.String[] args) |
double |
quantile(double q,
boolean lower_tail,
boolean log_p)
Uses numerical optimization to get approximate value, then followed by manual search.
|
static double |
quantile(double q,
int n,
boolean lower_tail,
boolean log_p)
Uses bisection.
|
double |
random()
Inverse CDF lookup
|
static double[] |
random(int count,
int n,
RandomEngine random) |
static double |
random(int n,
RandomEngine random)
Inverse CDF lookup
|
cumulative_hazard, cumulative_hazard, cumulative, cumulative, cumulative, density, density, getRandomEngine, hazard, hazard, inverse_survival, inverse_survival, quantile, quantile, quantile, random, random, setRandomEngine, survival, survival, survivalpublic static final double cumulative(double is,
int n,
boolean lower_tail)
is - n - lower_tail - public static final double cumulative_as89(double is,
int n,
boolean lower_tail)
is - n - lower_tail - public static final double cumulative_t(double is,
int n,
boolean lower_tail)
is - n - lower_tail - public static final double density(double is,
int n)
is - n - public static final double quantile(double q,
int n,
boolean lower_tail,
boolean log_p)
q - n - lower_tail - log_p - 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 GenericDistributionx - log - set true for logpublic double cumulative(double p,
boolean lower_tail,
boolean log_p)
cumulative in class GenericDistributionpublic double quantile(double q,
boolean lower_tail,
boolean log_p)
quantile in class GenericDistributionq - lower_tail - log_p - Whether q is in log valuepublic double random()
random in class GenericDistributionpublic static final void main(java.lang.String[] args)