JavaGrinders
Class DominanceTable

java.lang.Object
  extended by JavaGrinders.ContingencyTable
      extended by JavaGrinders.DominanceTable

public class DominanceTable
extends ContingencyTable

contains a table of dominance relationships and performs a variety of statistics on it, including test of linearity, ordinal ranks, etc.


Field Summary
 
Fields inherited from class JavaGrinders.ContingencyTable
diagonal, iterated, itsTotalSum, MatrixCols, MatrixRows, NUM_MAXITERATOR, PRECISIONMULT
 
Constructor Summary
DominanceTable(int MatrixSize)
          standard constructor for the DominanceTable class
DominanceTable(int MatrixSize, double[][] inMatrix)
          standard constructor for the DominanceTable class
 
Method Summary
 LinearityResults getLinearityResults()
          returns results from a Test of Linearity.
 double[] getOrdinalRanks()
          returns ordinal ranks for each individual
 void listLinearityResults()
          lists results from a Test for Linearity.
 void listOrdinalRanks()
          report ordinal ranks for each individual
 
Methods inherited from class JavaGrinders.ContingencyTable
as2DdoubleArray, as2DStringArray, asJAMAMatrix, calcContingencyResults, calcGoodnessOfFitResults, checkForColumnPs, checkMatchingMatrixDimensions, checkMatchingRows, checkMatrix, 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, getTableSubSet, getTauKr, getTauKrP, getTotalsMatrix, getTotalSum, getZeroCells, howManyPossiblePermutations, incrementCellValue, invertTable, 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
 

Constructor Detail

DominanceTable

public DominanceTable(int MatrixSize)
standard constructor for the DominanceTable class

Parameters:
MatrixSize - number of rows and columns in the table

DominanceTable

public DominanceTable(int MatrixSize,
                      double[][] inMatrix)
standard constructor for the DominanceTable class

Parameters:
MatrixSize - number of rows and columns in the table
inMatrix - 2D array of doubles to fill the table
Method Detail

getOrdinalRanks

public double[] getOrdinalRanks()
                         throws java.lang.Exception
returns ordinal ranks for each individual

Throws:
java.lang.Exception

listOrdinalRanks

public void listOrdinalRanks()
report ordinal ranks for each individual


getLinearityResults

public LinearityResults getLinearityResults()
                                     throws java.lang.Exception
returns results from a Test of Linearity. Reported are the number of circular triads, Landau's h and Kendall's tau.

Throws:
java.lang.Exception

listLinearityResults

public void listLinearityResults()
lists results from a Test for Linearity. Reported are the number of circular triads, Landau's h and Kendall's tau.