pal.statistics
Class ChiSquareTest

java.lang.Object
  |
  +--pal.statistics.ChiSquareTest

public class ChiSquareTest
extends java.lang.Object

chi-square test


Constructor Summary
ChiSquareTest()
           
 
Method Summary
static double compare(double[] ef, int[] of)
          chi square test
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChiSquareTest

public ChiSquareTest()
Method Detail

compare

public static double compare(double[] ef,
                             int[] of)
chi square test
Parameters:
ef - expected frequencies (sum up to 1 !!)
of - observed frequencies (sum up to the number of samples)
Returns:
critical significance level (negative if in chi2 test may be invalid)