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

java.lang.Object
  extended by org.knime.base.node.viz.crosstable.CrosstabStatisticsCalculator

 class CrosstabStatisticsCalculator
extends Object

Compute statistics for the crosstab node.

Author:
Heiko Hofer

Nested Class Summary
(package private) static class CrosstabStatisticsCalculator.CrosstabStatistics
          Container for the test statistics.
 
Constructor Summary
CrosstabStatisticsCalculator(BufferedDataTable freqTable, int rowIndex, int colIndex, int freqIndex, CrosstabNodeModel.CrosstabTotals totals, CrosstabProperties props)
           
 
Method Summary
(package private)  CrosstabStatisticsCalculator.CrosstabStatistics getStatistics()
          Get the statistics for the node.
(package private)  BufferedDataTable getTable()
          The table with statistics which is appended to the output of the crosstab node (contains e.g.
(package private)  void run(ExecutionContext exec)
          This method is not Thread-Safe.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CrosstabStatisticsCalculator

public CrosstabStatisticsCalculator(BufferedDataTable freqTable,
                                    int rowIndex,
                                    int colIndex,
                                    int freqIndex,
                                    CrosstabNodeModel.CrosstabTotals totals,
                                    CrosstabProperties props)
Parameters:
freqTable - table with at least three columns for the explanatory and response variable and for the frequency.
rowIndex - the column index of the explanatory variable
colIndex - the column index of the response variable
freqIndex - the column index of the frequency
totals - the wrapper for the totals (row count total, column count totals and total count)
props - the crosstab properties which is a source for the column names of the table return by getTable()
Method Detail

run

void run(ExecutionContext exec)
This method is not Thread-Safe. Call this method before calling any of the getter methods.

Parameters:
exec - the execution context.

getTable

BufferedDataTable getTable()
The table with statistics which is appended to the output of the crosstab node (contains e.g. the cell chi-square). Make sure the run() is finished before calling this method.

Returns:
row-wise statistics to be appended to the output of the crosstab node

getStatistics

CrosstabStatisticsCalculator.CrosstabStatistics getStatistics()
Get the statistics for the node. Make sure the run() is finished before calling this method.

Returns:
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.