com.rapidminer.tools.math
Class ContingencyTableTools

java.lang.Object
  extended by com.rapidminer.tools.math.ContingencyTableTools

public class ContingencyTableTools
extends java.lang.Object

This class provides some helper tool for calculations around contingency tables like chi-squared tests etc.

Author:
Ingo Mierswa

Constructor Summary
ContingencyTableTools()
           
 
Method Summary
static double[][] deleteEmpty(double[][] matrix)
          This method deletes all zero rows and columns.
static double getChiSquaredStatistics(double[][] matrix, boolean useYatesCorrection)
          This method calculates the chi-squared statistic for the given contingency table.
static double symmetricalUncertainty(double[][] matrix)
          Calculates the symmetrical uncertainty.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContingencyTableTools

public ContingencyTableTools()
Method Detail

getChiSquaredStatistics

public static double getChiSquaredStatistics(double[][] matrix,
                                             boolean useYatesCorrection)
This method calculates the chi-squared statistic for the given contingency table.


deleteEmpty

public static double[][] deleteEmpty(double[][] matrix)
This method deletes all zero rows and columns.


symmetricalUncertainty

public static double symmetricalUncertainty(double[][] matrix)
Calculates the symmetrical uncertainty.



Copyright © 2001-2009 by Rapid-I