|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.jhu.ece.iacl.algorithms.manual_label.simulation.ConfusionMatrix
public class ConfusionMatrix
| Constructor Summary | |
|---|---|
ConfusionMatrix(float[][] confusion)
contructor - with default labels |
|
ConfusionMatrix(float[][] confusion,
int[] labels)
contructor with input labels |
|
ConfusionMatrix(int[] labels)
contructor with labels only |
|
| Method Summary | |
|---|---|
int |
genNextLabel(int truelabel)
Given a true label, outputs this rater's label based on the confusion matrix |
int |
genNextLabelFromIndex(int truelabelind)
Given a true label's index, outputs this rater's label based on the confusion matrix |
java.lang.String |
lookuptoString()
outpus a string representation of the lookup Array |
static void |
main(java.lang.String[] args)
|
void |
printConfusion()
Prints the confusion Matrix |
void |
printLookup()
Prints the lookup Array |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ConfusionMatrix(int[] labels)
labels - - list of labelspublic ConfusionMatrix(float[][] confusion)
confusion - - confusion matrix as float array
public ConfusionMatrix(float[][] confusion,
int[] labels)
confusion - - confusion matrix as float arraylabels - - list of labels| Method Detail |
|---|
public int genNextLabel(int truelabel)
public int genNextLabelFromIndex(int truelabelind)
public java.lang.String lookuptoString()
public void printLookup()
public java.lang.String toString()
toString in class java.lang.Objectpublic void printConfusion()
public static void main(java.lang.String[] args)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||