public class Anova extends Object
| Constructor and Description |
|---|
Anova(double[][] p_data)
Creates a new
Anova instance. |
| Modifier and Type | Method and Description |
|---|---|
int |
getDOF1()
The first degree of freedom is equal to the number of sample groups,
minus 1.
|
int |
getDOF2()
The second degree of freedom is equal to the total number of data points,
minus the number of samples.
|
double |
getF()
Returns the F-value for your data.
|
double[] |
getMeans()
Returns an array of means for all of your sample groups.
|
double |
getP()
Returns the p-value that your data is all drawn from a single
distribution.
|
static void |
main(String[] argv) |
void |
printData()
Prettyprints your data and the results of the ANOVA.
|
void |
printResults()
Pretty prints your results.
|
public Anova(double[][] p_data)
Anova instance. Pass in the samples as an
array of double arrays. Naturally, they may have different sizes.p_data - a double[][] valuepublic void printData()
public void printResults()
public double getP()
p means you have an effect that is more
likely to be significant.double valuepublic double getF()
double valuepublic int getDOF1()
int valuepublic int getDOF2()
int valuepublic double[] getMeans()
double[] valuepublic static void main(String[] argv)
DMelt 2.0 © DataMelt by jWork.ORG