public class CellMatrix
extends java.lang.Object
Constructor and Description |
---|
CellMatrix(int CellColumns,
int CellRows,
boolean diagonal)
standard constructor for the CellMatrix class
|
Modifier and Type | Method and Description |
---|---|
void |
clearCells()
clears the cells
|
void |
copyMatrixSumsToCells()
recalculates the sums around the data matrix
|
void |
copyMatrixToCells()
fills the cells with the values from the data matrix
|
double |
getCellValue(int xLoc,
int yLoc)
returns the double from one element of this matrix
|
void |
setCellValue(int xLoc,
int yLoc,
double inValue)
sets one element for this matrix with a double
|
void |
setMatrix(ContingencyTable TableIn)
sets all cells based on a ContingencyTable object
|
public CellMatrix(int CellColumns, int CellRows, boolean diagonal)
CellColumns
- number of columns in the table * @param CellRows number of rows in the table * @param diagonal does the table have a diagonal?public void setMatrix(ContingencyTable TableIn)
TableIn
- ContingencyTable thatpublic void setCellValue(int xLoc, int yLoc, double inValue)
xLoc
- x Capture in grid * @param yLoc y Capture in grid * @param inValue double value to setpublic double getCellValue(int xLoc, int yLoc)
xLoc
- x Capture in grid * @param yLoc y Capture in gridpublic void copyMatrixToCells()
public void copyMatrixSumsToCells()
public void clearCells()
RH, 2017