public class ContingencyTable
extends java.lang.Object
Constructor and Description |
---|
ContingencyTable(double[][] observed) |
ContingencyTable(double[][] observed,
double[][] expected,
java.lang.String[] rowName,
java.lang.String[] colName) |
ContingencyTable(double[][] observed,
java.lang.String[] rowName,
java.lang.String[] colName) |
Modifier and Type | Method and Description |
---|---|
double |
findPearsonChiSquare() |
java.lang.String[] |
getColNames() |
int[] |
getColSum() |
int[] |
getColSumObserved() |
int |
getDF() |
double[][] |
getExpected() |
int |
getGrandTotal() |
int |
getNumberCol() |
int |
getNumberRow() |
double[][] |
getObserved() |
double |
getObserved(int i,
int j) |
double |
getPCutoff() |
double |
getPCutoff(boolean b) |
java.lang.String[] |
getRowNames() |
int[] |
getRowSum() |
int[] |
getRowSumObserved() |
static void |
main(java.lang.String[] args) |
void |
setExpected(double[][] expected) |
void |
setExpectedProbabilities() |
void |
setExpectedProbabilities(double[] rowProbability,
double[] colProbability) |
public ContingencyTable(double[][] observed)
public ContingencyTable(double[][] observed, java.lang.String[] rowName, java.lang.String[] colName)
public ContingencyTable(double[][] observed, double[][] expected, java.lang.String[] rowName, java.lang.String[] colName)
public void setExpected(double[][] expected)
public void setExpectedProbabilities() throws DataException
DataException
public void setExpectedProbabilities(double[] rowProbability, double[] colProbability) throws DataException
DataException
public int getGrandTotal()
public int[] getRowSumObserved()
public int[] getColSumObserved()
public java.lang.String[] getRowNames()
public int getNumberRow()
public int getNumberCol()
public java.lang.String[] getColNames()
public double getPCutoff() throws NumberTooBigException
NumberTooBigException
public double getPCutoff(boolean b)
public double findPearsonChiSquare()
public double[][] getExpected()
public double getObserved(int i, int j)
public double[][] getObserved()
public int[] getRowSum()
public int[] getColSum()
public int getDF()
public static void main(java.lang.String[] args)