| java.lang.Object org.apache.commons.math.stat.inference.ChiSquareTestImpl
ChiSquareTestImpl | public class ChiSquareTestImpl implements ChiSquareTest(Code) | | Implements Chi-Square test statistics defined in the
ChiSquareTest interface.
version: $Revision: 155427 $ $Date: 2005-02-26 06:11:52 -0700 (Sat, 26 Feb 2005) $ |
ChiSquareTestImpl | public ChiSquareTestImpl()(Code) | | Construct a ChiSquareTestImpl
|
chiSquare | public double chiSquare(double[] expected, long[] observed) throws IllegalArgumentException(Code) | | Parameters: observed - array of observed frequency counts Parameters: expected - array of expected frequency counts chi-square test statistic throws: IllegalArgumentException - if preconditions are not metor length is less than 2 |
chiSquareTest | public boolean chiSquareTest(double[] expected, long[] observed, double alpha) throws IllegalArgumentException, MathException(Code) | | Parameters: observed - array of observed frequency counts Parameters: expected - array of exptected frequency counts Parameters: alpha - significance level of the test true iff null hypothesis can be rejected with confidence1 - alpha throws: IllegalArgumentException - if preconditions are not met throws: MathException - if an error occurs performing the test |
chiSquareTest | public boolean chiSquareTest(long[][] counts, double alpha) throws IllegalArgumentException, MathException(Code) | | Parameters: counts - array representation of 2-way table Parameters: alpha - significance level of the test true iff null hypothesis can be rejected with confidence1 - alpha throws: IllegalArgumentException - if preconditions are not met throws: MathException - if an error occurs performing the test |
getDistributionFactory | protected DistributionFactory getDistributionFactory()(Code) | | Gets a DistributionFactory to use in creating ChiSquaredDistribution instances.
a DistributionFactory |
|
|