public class StudentT extends Object
Date: | 2002 as part of Fmath |
---|---|
Amended: | 12 May 2003 Statistics separated out from Fmath as a new class |
Update: | 18 June 2005, 5 January 2006, 25 April 2006, 12, 21 November 2006, 4 December 2006 (renaming of cfd and pdf methods - older version also retained), 31 December 2006, March 2007, 14 April 2007 |
See Michael Thomas Flanagan's Java library on-line web page:
http://www.ee.ucl.ac.uk/~mflanaga
/java/Stat.html http://www.ee.ucl.ac.uk/~mflanaga/java/
Copyright © April 2004, June 2005, January 2006, December 2006, April 2007
Permission to use, copy and modify this software and its documentation for NON-COMMERCIAL purposes is granted, without fee, provided that an acknowledgement to the author, Michael Thomas Flanagan at www.ee.ucl.ac.uk/~mflanaga, appears in all copies.
Dr. Michael Thomas Flanagan makes no representations about the suitability or fitness of the software for any or for a particular purpose. Michael Thomas Flanagan shall not be liable for any damages suffered as a result of using, modifying or distributing this software or its derivatives.
Modifier and Type | Field and Description |
---|---|
static double |
FPMIN
A small number close to the smallest representable floating point number.
|
Constructor and Description |
---|
StudentT() |
Modifier and Type | Method and Description |
---|---|
static double[] |
confidenceInterval(double[] x,
double alpha)
Computes the confidence interval of the specified precision over a set of data points.
|
static double |
contFract(double a,
double b,
double x)
Incomplete fraction summation used in the method
regularisedBetaFunction(double,double,double) . |
static double |
factorial(double n)
factorial of n.
|
static double |
gamma(double x)
Gamma function, Lanczos approximation (6 terms)
|
static double |
logFactorial(double n)
log to base e of the factorial of n.
|
static double |
logGamma(double x)
log to base e of the Gamma function, Lanczos approximation (6 terms).
|
static double |
regularisedBetaFunction(double z,
double w,
double x)
Regularised Incomplete Beta function.
|
static double |
sign(double x)
returns -1 if x < 0 else returns 1 (double version)
|
static double |
studentTcdf(double tValue,
int df)
Returns the Student's t cumulative distribution function probability
|
static double |
tTable(int df,
double alpha)
Computes the multiplier for the standard error of the mean when finding a (1 - alpha) *
100% confidence interval.
|
public static final double FPMIN
public static double sign(double x)
public static double factorial(double n)
public static double logFactorial(double n)
public static double gamma(double x)
public static double logGamma(double x)
public static double contFract(double a, double b, double x)
regularisedBetaFunction(double,double,double)
. modified Lentz's methodpublic static double regularisedBetaFunction(double z, double w, double x)
public static double studentTcdf(double tValue, int df)
public static double tTable(int df, double alpha)
df
- The degrees of freedom.alpha
- The fraction of the distribution to leave outside the interval.public static double[] confidenceInterval(double[] x, double alpha)
x
- The data points.alpha
- The fraction of the distribution to leave outside the interval.x
and half of the size
of the confidence interval over x
. If this array is named r
, then the confidence interval can be stated as r[0] +/- r[1]
.Copyright © 2016. All rights reserved.