|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--StatisticsPRP
The class contains various parametric and non-parametric probability statistics methods used in computing statistics for ProtPlot. These include: F-test, t-test, p-values for t-test, histogram, mean, stdDev, median, mode, extrema, etc.
NOTE: Statistics package (derived from MAExplorer, WebGel and GELLAB-II which were in turn derived from Numerical Recipes, and other sources).
This work was produced by Peter Lemkin of the National Cancer Institute, an agency of the United States Government and Djamel Medjahed (SAIC-Frederick). As a work of the United States Government there is no associated copyright. It is offered as open source software under the Mozilla Public License (version 1.1) subject to the limitations noted in the accompanying LEGAL file.
This work was derived from MAExplorer under the Mozilla 1.1 Open Source Public License by Peter Lemkin of the National Cancer Institute, an agency of the United States Government subject to the limitations noted in the accompanying LEGAL file. See licence info on http://maexplorer.sourceforge.org/
| Field Summary | |
(package private) float |
deltaBinH
width of the bins computed as: nBinsH/(maxDataH-minDataH) |
(package private) double |
dF
CALC: degrees of freedom T or F test |
(package private) double |
dFks
CALC: degrees of freedom KS-test |
(package private) double |
f
CALC: calculated f statistic |
(package private) double |
fStat
CALC: f-statistic |
(package private) int[] |
hist
histogram of size [0:nBinsH-1] |
(package private) double |
ksD
CALC: Kolmogorov-Smirnov D statistic |
(package private) float |
maxDataH
max value in data[] |
(package private) float |
meanAbsDevH
mean absolute deviation |
(package private) float |
meanH
mean of data[] |
(package private) int |
meanIdx
index of mean in hist[] |
(package private) float |
medianH
|
(package private) int |
medianIdx
index of median in hist[] |
(package private) float |
minDataH
min value in data[] |
(package private) float |
modeH
mode of data[] |
(package private) int |
modeIdx
index of mode in hist[] |
(package private) int |
nBinsH
0 if none. |
(package private) double |
pF
CALC: f-test p-value w/NULL hypoth |
(package private) double |
pKS
CALC: Kolmogorov-Smirnov test p-value w/NULL hypoth |
private static ProtPlot |
prp
instance of ProtPlot |
(package private) double |
pT
CALC: t-test p-value w/NULL hypoth |
(package private) float |
stdDevH
standard deviation of data[] |
(package private) double |
t
CALC: t or t' statistic |
(package private) java.lang.String |
title
for data used in histogram |
(package private) char |
useTest
CALC: 'B' or 'T' - t-test to use |
private static UtilPRP |
util
instance of UtilPRP |
| Constructor Summary | |
(package private) |
StatisticsPRP(ProtPlot prP)
StatisticsPRP() - 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) int |
calcHistStats(java.lang.String title,
int nBins,
float[] data,
int nData)
calcHistStats() - compute and analyze histogram generating statistics. |
(package private) int |
calcHistStats(java.lang.String title,
int nBins,
float[] data,
int nData,
int[] hist)
calcHistStats() - compute and analyze a histogram for whatever range of data is given. |
(package private) boolean |
calcKS_DandPvalues(double[] data1,
int n1,
double[] data2,
int n2)
calcKS_DandPvalues() - calculate Kolmogorov-Smirnov ksD, pKS, dFks from (n1,data1) and (n2,data2). |
(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). |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
private static ProtPlot prp
private static UtilPRP util
double dF
double dFks
char useTest
double t
double pT
double f
double pF
double fStat
double ksD
double pKS
java.lang.String title
int meanIdx
int medianIdx
int modeIdx
int nBinsH
int[] hist
float medianH
float modeH
float meanH
float stdDevH
float meanAbsDevH
float minDataH
float maxDataH
float deltaBinH
| Constructor Detail |
StatisticsPRP(ProtPlot prP)
prp - is ProtPlot instance| Method Detail |
boolean calcFprobFromVariances(int n1,
int n2,
double var1,
double var2)
fStat - the f-statistic
pF - CALC: probab. vars. same
n1 - # samples class 1n2 - # samples class 2var1 - variance of class 1var2 - variance of class 2MathPRP.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 freedom
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 2MathPRP.nr_betai(double, double, double),
calcFprobFromVariances(int, int, double, double)
boolean calcKS_DandPvalues(double[] data1,
int n1,
double[] data2,
int n2)
ksD - D statistic
pKS - KS test p-value w/NULL hypoth
dFks - degrees of freedom
data1 - sample data class 1n1 - # samples in class 1data2 - sample data class 2n2 - # samples in class 2
int calcHistStats(java.lang.String title,
int nBins,
float[] data,
int nData)
title - for datanBins - size of hist[]data - of size [0:nData-1]nData - size of data arraycalcHistStats(java.lang.String, int, float[], int)
int calcHistStats(java.lang.String title,
int nBins,
float[] data,
int nData,
int[] hist)
hist[0:nBins-1], medianH, modeH, meanH, stdDevH, meanAbsDevH, minDataH, maxDataH, deltaBinH.Note: if hist is int[nBins+1], then it will not be allocated.
title - for datanBins - size of hist[]data - of size [0:nData-1]nData - size of data arrayhist - opt. [nBins+1] else null in which case it will allocate
it locally
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||