JavaGrinders
Class DataTable

java.lang.Object
  extended by JavaGrinders.ContingencyTable
      extended by JavaGrinders.DataTable
All Implemented Interfaces:
java.lang.Cloneable

public class DataTable
extends ContingencyTable

Unlike a contingency table, a data table may contain negative values (e.g. Freeman Tukey deviates


Field Summary
static int EUCLIDIAN
           
static int MANHATTAN
           
static int SQUAREDEUCLIDIAN
           
 
Fields inherited from class JavaGrinders.ContingencyTable
diagonal, iterated, itsTotalSum, MatrixCols, MatrixRows, NUM_MAXITERATOR, PRECISIONMULT
 
Constructor Summary
DataTable(double[][] theArray)
          standard constructor for the ContingencyTable class
DataTable(int MatrixCols, int MatrixRows, boolean diagonal)
          standard constructor for the DataTable class
DataTable(int MatrixCols, int MatrixRows, boolean diagonal, java.lang.String theName)
          standard constructor for the DataTable class
DataTable(Matrix aMatrix, boolean diagonal)
          constructor for the DataTable class with a JAMA Matrix provided
 
Method Summary
 void checkMatrix()
          examines the matrix for invalid entries, all values may occur, so no flag is thrown
 ContingencyTable invertTable()
          inverts the table with rows to colums and colums to rows
 
Methods inherited from class JavaGrinders.ContingencyTable
as2DdoubleArray, as2DStringArray, asJAMAMatrix, calcContingencyResults, calcGoodnessOfFitResults, checkForColumnPs, checkMatchingMatrixDimensions, checkSquare, clearColumnPs, clearPs, clearSums, clearTable, clearTablePs, clone, colToString, DoWilliamsCorr, fillPerms, fillSums, fold, getCellValue, getColLabel, getColLabels, getColSum, getColSums, getColumnPs, getContingencyTableResults, getContingencyTableResults, getdf, getDifferenceTable, getDominanceMatrix, getExpectedMatrix, getExpectedMatrix, getExpMatrixDia, getExpMatrixFromProbabilities, getExpMatrixNoDia, getFTukeyDeviates, getGoodnessOfFitResults, getMantelP, getMantelZ, getMatrixSize, getName, getNCells, getNCols, getNoZeroCellMatrix, getNRows, getPermutedTable, getpropMatrixDia, getpropMatrixNoDia, getRowLabel, getRowLabels, getRowSum, getRowSums, getTablePs, getTauKr, getTauKrP, getTotalsMatrix, getTotalSum, getZeroCells, howManyPossiblePermutations, incrementCellValue, isMatchingMatrix, isSquare, listContingencyResults, listExpectedTable, listFTukeyDeviates, listGoodnessOfFitResults, listMantelZResults, listTable, listTable, listTauKrResults, noSumsToString, rowToString, set2DArray, setCellValue, setColLabel, setColLabels, setColLabels, setColumnPs, setDefaultRowColLabels, setDiagonal, setMatrixDimensions, setMatrixSize, setName, setRowColLabels, setRowColLabels, setRowLabel, setRowLabels, setRowLabels, setTablePs, TauKr, toFile, toString, transpose, unfold, unfoldUpperTriangle
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EUCLIDIAN

public static final int EUCLIDIAN
See Also:
Constant Field Values

SQUAREDEUCLIDIAN

public static final int SQUAREDEUCLIDIAN
See Also:
Constant Field Values

MANHATTAN

public static final int MANHATTAN
See Also:
Constant Field Values
Constructor Detail

DataTable

public DataTable(int MatrixCols,
                 int MatrixRows,
                 boolean diagonal,
                 java.lang.String theName)
standard constructor for the DataTable class

Parameters:
MatrixCols - number of columns in the table
MatrixRows - number of rows in the table
diagonal - does the table have a diagonal?
theName - the name of the table

DataTable

public DataTable(int MatrixCols,
                 int MatrixRows,
                 boolean diagonal)
standard constructor for the DataTable class

Parameters:
MatrixCols - number of columns in the table
MatrixRows - number of rows in the table
diagonal - does the table have a diagonal?

DataTable

public DataTable(Matrix aMatrix,
                 boolean diagonal)
constructor for the DataTable class with a JAMA Matrix provided

Parameters:
aMatrix - a JAMA matrix
diagonal - does the table have a diagonal?

DataTable

public DataTable(double[][] theArray)
standard constructor for the ContingencyTable class

Parameters:
theArray - the array to install into the Table
Method Detail

checkMatrix

public void checkMatrix()
                 throws java.lang.Exception
examines the matrix for invalid entries, all values may occur, so no flag is thrown

Overrides:
checkMatrix in class ContingencyTable
Throws:
java.lang.Exception

invertTable

public ContingencyTable invertTable()
inverts the table with rows to colums and colums to rows

Overrides:
invertTable in class ContingencyTable