|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.table.AbstractTableModel
org.knime.base.node.mine.scorer.accuracy.ConfusionTableModel
public class ConfusionTableModel
A table model representing a confusion matrix.
Field Summary |
---|
Fields inherited from class javax.swing.table.AbstractTableModel |
---|
listenerList |
Constructor Summary | |
---|---|
ConfusionTableModel(int[][] scoreCount,
String[] headers,
String rowHeaderDescription,
String columnHeaderDescription)
Constructs confusion table model from the score count and the headers. |
Method Summary | |
---|---|
int |
getColumnCount()
Column and row count are equal as this is a square matrix. |
String |
getColumnName(int column)
Returns the column names, i.e. |
int |
getRowCount()
Column and row count are equal as this is a square matrix. |
Object |
getValueAt(int rowIndex,
int columnIndex)
Returns the confusion matrix value at the corresponding position. |
Methods inherited from class javax.swing.table.AbstractTableModel |
---|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConfusionTableModel(int[][] scoreCount, String[] headers, String rowHeaderDescription, String columnHeaderDescription)
scoreCount
- a 2-D int array representing the confusion matrix.headers
- the names of the attributes to display in the tablerowHeaderDescription
- row header descriptioncolumnHeaderDescription
- column header descriptionMethod Detail |
---|
public int getColumnCount()
public int getRowCount()
public Object getValueAt(int rowIndex, int columnIndex)
public String getColumnName(int column)
getColumnName
in interface TableModel
getColumnName
in class AbstractTableModel
column
- the index of the column in the table to display
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |