|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectMathCM
public class MathCM
Class MathCM contains utility Math functions not found in the Java Math package. Results that are compute are left in the CALC variables.
List of MethodsThis code is available at the HTMLtools project on SourceForge at http://htmltools.sourceforge.org/ under the "Common Public License Version 1.0" http://www.opensource.org/licenses/cpl1.0.php.
=================== nr_gammln() - Return ln(gamma()) of x by polynomial evaluation. nr_betai() - return the incomplete Beta function 'x(a,b) nr_betacf() - evaluation fct for the incomplete Beta function 'x(a,b). calcFprobFromVariances() - calculate 2-tailed f probility that variables are same. calcTandPvalues() - calculate f, t, p, dF from (n1,m1,s1) and (n2,m2,s2).
It was derived and refactored from the open source MAExplorer (http://maexplorer.sourceforge.org/), and Open2Dprot (http://Open2Dprot.sourceforge.net/) Table modules.
$Date: 2009/12/09 11:45:56 $ $Revision: 1.41 $
Copyright 2008, 2009 by Peter Lemkin
E-Mail: lemkin@users.sourceforge.net
http://lemkingroup.com/
Field Summary | |
---|---|
double |
dF
CALC: degrees of freedom of t-test or F-test (2 conditions) set by calcTandPvalues() |
double |
f
CALC: calculated f statistic set by calcTandPvalues() |
double |
fStat
CALC: f-statistic 2 conditions |
static double[] |
gammln_cof
|
static boolean |
okBetaCF
RTN: if nr_betacf() was ok |
static boolean |
okBetaI
RTN: if nr_betai() was ok |
double |
pF
CALC: f-test p-value w/NULL hypoth set by calcTandPvalues() |
double |
pT
CALC: t-test p-value w/NULL hypoth set by calcTandPvalues() |
double |
t
CALC: t or t' statistic set by calcTandPvalues() |
private char |
useTest
CALC: 'B' or 'T' - t-test to use set by calcTandPvalues() |
Constructor Summary | |
---|---|
MathCM()
MathCM() - Constructor |
Method Summary | |
---|---|
(package private) boolean |
calcFprobFromVariances(int n1,
int n2,
double var1,
double var2)
calcFprobFromVariances() - calculate 2-tailed f probility that variables are same. |
(package private) boolean |
calcTandPvalues(int n1,
int n2,
double m1,
double m2,
double s1,
double s2)
calcTandPvalues() - calculate f, t, p, dF from (n1,m1,s1) and (n2,m2,s2). |
static double |
nr_betacf(double a,
double b,
double x)
nr_betacf() - evaluation fct for the incomplete Beta function 'x(a,b). |
static double |
nr_betai(double a,
double b,
double x)
nr_betai() - return the incomplete Beta function 'x(a,b). |
static double |
nr_gammln(double xx)
nr_gammln() - Return ln(gamma()) of x by polynomial evaluation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final double[] gammln_cof
public static boolean okBetaCF
public static boolean okBetaI
public double pT
public double pF
public double dF
public double t
public double f
public double fStat
private char useTest
Constructor Detail |
---|
public MathCM()
Method Detail |
---|
public static double nr_gammln(double xx)
xx
- arg
public static double nr_betai(double a, double b, double x)
a
- - a parameter of 'x(a,b)b
- - b parameter of 'x(a,b)x
- - x parameter of 'x(a,b)
nr_betacf(double, double, double)
,
nr_gammln(double)
public static double nr_betacf(double a, double b, double x)
a
- argb
- argx
- arg
boolean calcFprobFromVariances(int n1, int n2, double var1, double var2)
fStat - the f-statistic pF - CALC: probab. vars. sameThis method was derived from GELLAB-II which was derived from Numerical Recipes in C and Snedecore and Chochran Statistical Methods.
n1
- # samples class 1n2
- # samples class 2var1
- variance of class 1var2
- variance of class 2
nr_betai(double, double, double)
boolean calcTandPvalues(int n1, int n2, double m1, double m2, double s1, double s2)
f - calculated f statistic t - t or t' statistic pT - t-test p-value w/NULL hypoth pF - f-test p-value w/NULL hypoth dF - degrees of freedomThis method was derived from GELLAB-II which was derived from Numerical Recipes in C and Snedecore and Chochran Statistical Methods.
n1
- # samples in class 1n2
- # samples in class 2m1
- sample mean class 1m2
- sample mean class 2s1
- sample std dev class 1s2
- sample std dev class 2
nr_betai(double, double, double)
,
calcFprobFromVariances(int, int, double, double)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |