|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface OneWayAnova
An interface for one-way ANOVA (analysis of variance).
Tests for differences between two or more categories of univariate data
(for example, the body mass index of accountants, lawyers, doctors and
computer programmers). When two categories are given, this is equivalent to
the TTest
.
Method Summary | |
---|---|
double |
anovaFValue(Collection<double[]> categoryData)
Computes the ANOVA F-value for a collection of double[]
arrays. |
double |
anovaPValue(Collection<double[]> categoryData)
Computes the ANOVA P-value for a collection of double[]
arrays. |
boolean |
anovaTest(Collection<double[]> categoryData,
double alpha)
Performs an ANOVA test, evaluating the null hypothesis that there is no difference among the means of the data categories. |
Method Detail |
---|
double anovaFValue(Collection<double[]> categoryData) throws IllegalArgumentException, MathException
double[]
arrays.
Preconditions:
Collection
must contain
double[]
arrays.double[]
arrays in the
categoryData
collection and each of these arrays must
contain at least two values.
categoryData
- Collection
of double[]
arrays each containing data for one category
IllegalArgumentException
- if the preconditions are not met
MathException
- if the statistic can not be computed do to a
convergence or other numerical error.double anovaPValue(Collection<double[]> categoryData) throws IllegalArgumentException, MathException
double[]
arrays.
Preconditions:
Collection
must contain
double[]
arrays.double[]
arrays in the
categoryData
collection and each of these arrays must
contain at least two values.
categoryData
- Collection
of double[]
arrays each containing data for one category
IllegalArgumentException
- if the preconditions are not met
MathException
- if the statistic can not be computed do to a
convergence or other numerical error.boolean anovaTest(Collection<double[]> categoryData, double alpha) throws IllegalArgumentException, MathException
Preconditions:
Collection
must contain
double[]
arrays.double[]
arrays in the
categoryData
collection and each of these arrays must
contain at least two values.
categoryData
- Collection
of double[]
arrays each containing data for one categoryalpha
- significance level of the test
IllegalArgumentException
- if the preconditions are not met
MathException
- if the statistic can not be computed do to a
convergence or other numerical error.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |