org.knime.base.node.viz.crosstable
Class CrosstabStatisticsCalculator.CrosstabStatistics

java.lang.Object
  extended by org.knime.base.node.viz.crosstable.CrosstabStatisticsCalculator.CrosstabStatistics
Enclosing class:
CrosstabStatisticsCalculator

static class CrosstabStatisticsCalculator.CrosstabStatistics
extends Object

Container for the test statistics.

Author:
Heiko Hofer

Constructor Summary
CrosstabStatisticsCalculator.CrosstabStatistics(BufferedDataTable table)
          Retrieve statistics from the given table.
CrosstabStatisticsCalculator.CrosstabStatistics(double chiSquare, int chiSquareDF, double chiSquarePValue, double fisherExactPValue)
           
 
Method Summary
(package private) static DataTableSpec createSpec()
          Create the data table spec of the table return by getTable().
(package private)  int getChiSquaredDegreesOfFreedom()
          Get the degrees of freedom for the Pearson chi-squared statistic.
(package private)  double getChiSquaredPValue()
          Get the p-value for the Pearson chi-squared statistic.
(package private)  double getChiSquaredStatistic()
          Get the Pearson chi-squared statistic.
(package private)  double getFisherExactPValue()
          Get the p-value for the Fisher's exact test.
(package private)  BufferedDataTable getTable()
           
(package private)  void run(ExecutionContext exec)
          Create the statistics data table.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CrosstabStatisticsCalculator.CrosstabStatistics

CrosstabStatisticsCalculator.CrosstabStatistics(double chiSquare,
                                                int chiSquareDF,
                                                double chiSquarePValue,
                                                double fisherExactPValue)
Parameters:
chiSquare - chi-squared test statistics - value
chiSquareDF - chi-squared test statistics - degrees of freedom
chiSquarePValue - chi-squared test statistics - p-value
fisherExactPValue - the p-value of Fisher's exact test

CrosstabStatisticsCalculator.CrosstabStatistics

CrosstabStatisticsCalculator.CrosstabStatistics(BufferedDataTable table)
Retrieve statistics from the given table.

Parameters:
table - the data table width the statistics
Method Detail

createSpec

static DataTableSpec createSpec()
Create the data table spec of the table return by getTable().

Returns:
the data table spec

run

void run(ExecutionContext exec)
Create the statistics data table.

Parameters:
exec - the execution context.

getChiSquaredStatistic

double getChiSquaredStatistic()
Get the Pearson chi-squared statistic.

Returns:
the Pearson chi-squared statistic.

getChiSquaredDegreesOfFreedom

int getChiSquaredDegreesOfFreedom()
Get the degrees of freedom for the Pearson chi-squared statistic.

Returns:
the degrees of freedom Pearson chi-squared statistic.

getChiSquaredPValue

double getChiSquaredPValue()
Get the p-value for the Pearson chi-squared statistic.

Returns:
the p-value for the Pearson chi-squared statistic.

getFisherExactPValue

double getFisherExactPValue()
Get the p-value for the Fisher's exact test.

Returns:
the p-value for the Fisher's exact test

getTable

BufferedDataTable getTable()
Returns:
the table with the statistics


Copyright, 2003 - 2012. All rights reserved.
University of Konstanz, Germany.
Chair for Bioinformatics and Information Mining, Prof. Dr. Michael R. Berthold.
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.