pal.statistics
Class ChiSquareTest

java.lang.Object
  extended by pal.statistics.ChiSquareTest

public class ChiSquareTest
extends java.lang.Object

chi-square test

Version:
$Id: ChiSquareTest.java,v 1.2 2001/07/13 14:39:13 korbinian Exp $
Author:
Korbinian Strimmer

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)