public class Statistics extends Object
Constructor and Description |
---|
Statistics() |
Modifier and Type | Method and Description |
---|---|
static double[][] |
correlation(double[][] v)
Correlation
|
static double[][] |
correlation(double[][] v1,
double[][] v2)
Correlation coefficient, covariance(v1, v2) / Math.sqrt(variance(v1) *
variance(v2)
|
static double |
correlation(double[] v1,
double[] v2)
Correlation coefficient, covariance(v1, v2) / Math.sqrt(variance(v1) *
variance(v2)
|
static double[][] |
covariance(double[][] v)
Covariance
|
static double[][] |
covariance(double[][] v1,
double[][] v2)
Covariance
|
static double |
covariance(double[] v1,
double[] v2)
Covariance
|
void |
doc()
Show online documentation.
|
static double |
FProbability(double F,
int df1,
int df2)
Computes probability of F-ratio.
|
static double |
gamma(double x)
Returns the Gamma function of the argument.
|
static double |
incompleteBeta(double aa,
double bb,
double xx)
Returns the Incomplete Beta Function evaluated from zero to xx.
|
static double |
incompleteBetaFraction1(double a,
double b,
double x)
Continued fraction expansion #1 for incomplete beta integral.
|
static double |
incompleteBetaFraction2(double a,
double b,
double x)
Continued fraction expansion #2 for incomplete beta integral.
|
static double |
lnGamma(double x)
Returns natural logarithm of gamma function.
|
static double |
mean(double[] v)
Get mean value
|
static double[] |
mean(double[][] v)
Get mean
|
static double |
p1evl(double x,
double[] coef,
int N)
Evaluates the given polynomial of degree N at x.
|
static double |
polevl(double x,
double[] coef,
int N)
Evaluates the given polynomial of degree N at x.
|
static double |
powerSeries(double a,
double b,
double x)
Power series for incomplete beta integral.
|
static double |
stddeviation(double[] v)
Standard deviation
|
static double[] |
stddeviation(double[][] v)
Standard deviation
|
static double |
stirlingFormula(double x)
Returns the Gamma function computed by Stirling's formula.
|
static double |
variance(double[] v)
Variance
|
static double[] |
variance(double[][] v)
Variance
|
public static double mean(double[] v)
v
- vectorpublic static double[] mean(double[][] v)
v
- 2D arraypublic static double stddeviation(double[] v)
v
- vectorpublic static double variance(double[] v)
v
- public static double[] stddeviation(double[][] v)
v
- public static double[] variance(double[][] v)
v
- vectorpublic static double covariance(double[] v1, double[] v2)
v1
- first vectorv2
- second vectorpublic static double[][] covariance(double[][] v1, double[][] v2)
v1
- first 2D arrayv2
- second 2D arraypublic static double[][] covariance(double[][] v)
v
- public static double correlation(double[] v1, double[] v2)
v1
- first vectorv2
- second vectorpublic static double[][] correlation(double[][] v1, double[][] v2)
v1
- first vectorv2
- second vectorpublic static double[][] correlation(double[][] v)
v
- public static double FProbability(double F, int df1, int df2)
F
- the F-ratiodf1
- the first number of degrees of freedomdf2
- the second number of degrees of freedompublic static double incompleteBeta(double aa, double bb, double xx)
aa
- the alpha parameter of the beta distribution.bb
- the beta parameter of the beta distribution.xx
- the integration end point.public static double powerSeries(double a, double b, double x)
public static double lnGamma(double x)
x
- the valuepublic static double p1evl(double x, double[] coef, int N)
2 N y = C + C x + C x +...+ C x 0 1 2 N Coefficients are stored in reverse order: coef[0] = C , ..., coef[N] = C . N 0The function p1evl() assumes that coef[N] = 1.0 and is omitted from the array. Its calling arguments are otherwise the same as polevl().
In the interest of speed, there are no checks for out of bounds arithmetic.
x
- argument to the polynomial.coef
- the coefficients of the polynomial.N
- the degree of the polynomial.public static double gamma(double x)
public static double stirlingFormula(double x)
public static double polevl(double x, double[] coef, int N)
2 N y = C + C x + C x +...+ C x 0 1 2 N Coefficients are stored in reverse order: coef[0] = C , ..., coef[N] = C . N 0In the interest of speed, there are no checks for out of bounds arithmetic.
x
- argument to the polynomial.coef
- the coefficients of the polynomial.N
- the degree of the polynomial.public static double incompleteBetaFraction1(double a, double b, double x)
public static double incompleteBetaFraction2(double a, double b, double x)
public void doc()
Jas4pp 1.5 © Java Analysis Studio for Particle Physics