|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--MJAbase | +--MJAstatistics
MAExplorer Gather Scatter API class to access MJAstatistics methods and data structures. Access statistics methods
List of methods available to Plugin-writers
get_f() - CALC: calculated f statistic get_t() - CALC: t or t' statistic previously computed get_pT() - CALC: t-test p-value w/NULL hypoth previously computed get_pF() - CALC: f-test p-value w/NULL hypoth previously computed get_fStat() - CALC: f-statistic previously computed get_dF() - CALC: degrees of freedom previously computed get_useTest() - CALC: 'B' or 'T' - t-test to use computed get_title() - title for data used in histogram previously computed get_meanIdx() - index of mean in hist[] previously computed get_medianIdx() - index of median in hist[] previously computed get_modeIdx() - index of mode in hist[] previously computed get_nBinsH() - 0 if none. size of histogram previously computed get_hist() - histogram of size [0:nBinsH-1] previously computed get_medianH() - mode of data[] for histogram previously computed get_modeH() - mode of data[] for histogram previously computed get_meanH() - mean of data[] for histogram previously computed get_stdDevH() - standard deviation of data[] for histogram get_meanAbsDevH() - mean absolute deviation for histogram get_minDataH() - min value in data[] for histogram previously computed get_maxDataH() - max value in data[] for histogram previously computed get_deltaBinH() - width of the histogram bins get_nCond_pValue() - get p-value computed of N-condition F-test get_nCondFstat() - get f-statistic computed in N-condition F-test get_nCondMeanSqWithinVariance() - get mnSqWithin variance computed in N-condition F-test get_nCondMeanSqBetweenVariance() - get mnSqBetween variance computed in N-condition F-test get_nCond_dfWithin() - get dfWithin (deg. of freedom) computed in N-condition F-test get_nCond_dfBetween() - get dfBetween (deg. of freedom) computed in N-condition F-test get_nConditions() - get nConditions used in computation of N-condition F-test get_conditionsData() - get samples for each condition for N-cond F-test get_nSamplesAllConditions() - # samples for each condition for N-cond F-test get_meansAllConditions() - get means of conditions for N-cond F-test get_varianceAllConditions() - get variances of conditions for N-cond F-test -------------------------------------------------------- calcMeanAndVariance() - compute mean & var of dataS[] calcNCondFtestStat() - calc. F-test statistics of data[0:nConditions-1][samples] calcFprobFromVariances() - calc 2-tailed f prob. that vars. are same. calcTandPvalues() - given (n1,m1,s1) and (n2,m2,s2), calc f, t, p, dF. calcHistStats() - compute and analyze histogram. calcHistStats() - compute and analyze histogram.
This work was produced by Peter Lemkin of the National Cancer Institute, an agency of the United States Government. 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 notice must be included with the code. The MAExplorer Mozilla and Legal files are available on http://maexplorer.sourceforge.net/.
Method Summary | |
boolean |
calcFprobFromVariances(int n1,
int n2,
double var1,
double var2)
calcFprobFromVariances() - calc 2-tailed f prob. |
int |
calcHistStats(java.lang.String title,
int nBins,
float[] data,
int nData)
calcHistStats() - compute and analyze histogram. |
int |
calcHistStats(java.lang.String title,
int nBins,
float[] data,
int nData,
int[] hist)
calcHistStats() - compute and analyze histogram. |
boolean |
calcMeanAndVariance(float[] dataS,
int nSamples,
int classK,
boolean calcStdDevFlag)
calcMeanAndVariance() - compute the mean and variance of dataS[] and save in mean[classK] and variance[classK] arrays. |
boolean |
calcNCondFtestStat(float[][] data,
int[] nData,
int nConditions)
calcNCondFtestStat() - calc. |
boolean |
calcTandPvalues(int n1,
int n2,
double m1,
double m2,
double s1,
double s2)
calcTandPvalues() - given (n1,m1,s1) and (n2,m2,s2), calc f, t, p, dF. |
float[][] |
get_conditionsData()
get_conditionsData() - data[0:nConditions-1][sampleNbrInClass] for computations of N-condition F-test |
float |
get_deltaBinH()
get_deltaBinH() - width of the histogram bins computed as: nBinsH/(maxDataH-minDataH) previously computed |
double |
get_dF()
get_dF() - CALC: degrees of freedom previously computed |
double |
get_f()
get_f() - CALC: calculated f statistic previously computed |
double |
get_fStat()
get_fStat() - CALC: f-statistic previously computed |
int[] |
get_hist()
get_hist() - histogram of size [0:nBinsH-1] previously computed |
float |
get_maxDataH()
get_maxDataH() - max value in data[] for histogram previously computed |
float |
get_meanAbsDevH()
get_meanAbsDevH() - mean absolute deviation for histogram previously computed |
float |
get_meanH()
get_meanH() - mean of data[] for histogram previously computed |
int |
get_meanIdx()
get_meanIdx() - index of mean in hist[] previously computed |
double[] |
get_meansAllConditions()
get_meansAllConditions() - means of samples in each of the nConditions used in computation of N-condition F-test |
float |
get_medianH()
get_medianH() - mode of data[] for histogram previously computed |
int |
get_medianIdx()
get_medianIdx() - index of median in hist[] previously computed |
float |
get_minDataH()
get_minDataH() - min value in data[] for histogram previously computed |
float |
get_modeH()
get_modeH() - mode of data[] for histogram previously computed |
int |
get_modeIdx()
get_modeIdx() - index of mode in hist[] previously computed |
int |
get_nBinsH()
get_nBinsH() - 0 if none. |
double |
get_nCond_dfBetween()
get_nCond_dfBetween() - get dfBetween degrees of freedom used in computation of N-condition F-test |
double |
get_nCond_dfWithin()
get_nCond_dfWithin() - get dfWithin degrees of freedom used in computation of N-condition F-test |
double |
get_nCond_pValue()
get_nCond_pValue() - get p-value computed of N-condition F-test |
double |
get_nCondFstat()
get_nCondFstat() - get f-statistic computed in N-condition F-test |
int |
get_nConditions()
get_nConditions() - get nConditions used in computation of N-condition F-test |
double |
get_nCondMeanSqBetweenVariance()
get_nCondMeanSqBetweenVariance() - get mnSqBetween variance used in computation of N-condition F-test |
double |
get_nCondMeanSqWithinVariance()
get_nCondMeanSqWithinVariance() - get mnSqWithin variance used in computation of N-condition F-test |
int[] |
get_nSamplesAllConditions()
get_nSamplesAllConditions() - # of samples in each of the nConditions used in computation of N-condition F-test |
double |
get_pF()
get_pF() - CALC: f-test p-value w/NULL hypoth previously computed |
double |
get_pT()
get_pT() - CALC: t-test p-value w/NULL hypoth previously computed |
double[] |
get_stdDevAllConditions()
get_stdDevAllConditions() - stdDev of samples in each of the nConditions used in computation of N-condition F-test |
float |
get_stdDevH()
get_stdDevH() - standard deviation of data[] for histogram previously computed |
double |
get_t()
get_t() - CALC: t or t' statistic computed previously computed |
java.lang.String |
get_title()
get_title() - title for data used in histogram previously computed |
char |
get_useTest()
get_useTest() - CALC: 'B' or 'T' - t-test to use computed using F-statistic previously computed |
double[] |
get_varianceAllConditions()
get_varianceAllConditions() - variance of samples in each of the nConditions used in computation of N-condition F-test |
Methods inherited from class MJAbase |
cvtHashtable2SimpleTable, cvtTable2Hashtable |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public final double get_f()
calcFprobFromVariances(int, int, double, double)
,
calcTandPvalues(int, int, double, double, double, double)
public final double get_t()
calcTandPvalues(int, int, double, double, double, double)
public final double get_pT()
calcTandPvalues(int, int, double, double, double, double)
public final double get_pF()
calcFprobFromVariances(int, int, double, double)
,
calcTandPvalues(int, int, double, double, double, double)
public final double get_fStat()
calcFprobFromVariances(int, int, double, double)
,
calcTandPvalues(int, int, double, double, double, double)
public final double get_dF()
calcTandPvalues(int, int, double, double, double, double)
public final char get_useTest()
calcTandPvalues(int, int, double, double, double, double)
public final java.lang.String get_title()
public final int get_meanIdx()
calcHistStats(java.lang.String, int, float[], int)
public final int get_medianIdx()
calcHistStats(java.lang.String, int, float[], int)
public final int get_modeIdx()
calcHistStats(java.lang.String, int, float[], int)
public final int get_nBinsH()
calcHistStats(java.lang.String, int, float[], int)
public final int[] get_hist()
calcHistStats(java.lang.String, int, float[], int)
public final float get_medianH()
calcHistStats(java.lang.String, int, float[], int)
public final float get_modeH()
calcHistStats(java.lang.String, int, float[], int)
public final float get_meanH()
calcHistStats(java.lang.String, int, float[], int)
public final float get_stdDevH()
calcHistStats(java.lang.String, int, float[], int)
public final float get_meanAbsDevH()
calcHistStats(java.lang.String, int, float[], int)
public final float get_minDataH()
calcHistStats(java.lang.String, int, float[], int)
public final float get_maxDataH()
calcHistStats(java.lang.String, int, float[], int)
public final float get_deltaBinH()
calcHistStats(java.lang.String, int, float[], int)
public final double get_nCond_pValue()
calcMeanAndVariance(float[], int, int, boolean)
public final double get_nCondFstat()
calcMeanAndVariance(float[], int, int, boolean)
public final double get_nCondMeanSqWithinVariance()
calcMeanAndVariance(float[], int, int, boolean)
public final double get_nCondMeanSqBetweenVariance()
calcMeanAndVariance(float[], int, int, boolean)
public final double get_nCond_dfWithin()
calcMeanAndVariance(float[], int, int, boolean)
public final double get_nCond_dfBetween()
calcMeanAndVariance(float[], int, int, boolean)
public final int get_nConditions()
calcMeanAndVariance(float[], int, int, boolean)
public final float[][] get_conditionsData()
calcMeanAndVariance(float[], int, int, boolean)
,
calcMeanAndVariance(float[], int, int, boolean)
public final int[] get_nSamplesAllConditions()
calcMeanAndVariance(float[], int, int, boolean)
public final double[] get_meansAllConditions()
calcMeanAndVariance(float[], int, int, boolean)
public final double[] get_varianceAllConditions()
calcMeanAndVariance(float[], int, int, boolean)
public final double[] get_stdDevAllConditions()
calcMeanAndVariance(float[], int, int, boolean)
public boolean calcMeanAndVariance(float[] dataS, int nSamples, int classK, boolean calcStdDevFlag)
data
- is array of size [0:nSamples-1] of datanSamples
- is size of dataclassK
- is the class # associated with this data (start at 0)calcStdDevFlag
- also compute stdDev[classK] as wellpublic boolean calcNCondFtestStat(float[][] data, int[] nData, int nConditions)
pFnConds - p value fStatNconds - f statistic mnSqWithin - mean within class variance mnSqBetween - mean between class variance dF1 - degrees of freedom df1 dF2 - degrees of freedom df2
data
- sample data[nConditions][sampleNbrInCondition]nData
- # samples in each [nConditions]nConditions
- # of conditionspublic final boolean calcFprobFromVariances(int n1, int n2, double var1, double var2)
fStat - the f-statistic pF - probability tthat the two samples are the same
n1
- # samples class 1n2
- # samples class 2var1
- variance of class 1var2
- variance of class 2public final 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 useTest - is 'B' or'T' depending on f statistic
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 2public final int calcHistStats(java.lang.String title, int nBins, float[] data, int nData)
hist[0:nBins-1], medianH, modeH, meanH, stdDevH, meanAbsDevH, minDataH, maxDataH, deltaBinH
title
- for datanBins
- size of hist[]data
- of size [0:nData-1]nData
- size of data arraypublic final 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 shorintt[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 |