org.agmodel.bioinfo.stat
Class GOFChiSqrTest

java.lang.Object
  extended byorg.agmodel.bioinfo.stat.GOFChiSqrTest

public class GOFChiSqrTest
extends java.lang.Object


Constructor Summary
GOFChiSqrTest(int[] n_obs, double[] n_exp)
          Constructor
 
Method Summary
 double getChiSqr()
          Get chi-square value
 double getP()
          Get probability under null hypothesis,
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GOFChiSqrTest

public GOFChiSqrTest(int[] n_obs,
                     double[] n_exp)
Constructor

Parameters:
n_obs - Observed number for each class
n_exp - Expected number for each class
Method Detail

getP

public double getP()
Get probability under null hypothesis,

Returns:
P-value

getChiSqr

public double getChiSqr()
Get chi-square value

Returns:
chi-square value