|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.strbio.math.IMatrix
org.strbio.math.StatsMatrix
org.strbio.math.SimMatrix
public class SimMatrix
This is a NxN matrix, where data[i][j] indicates the number of times something was actually i, but predicted to be j.
Field Summary |
---|
Fields inherited from class org.strbio.math.IMatrix |
---|
data |
Constructor Summary | |
---|---|
SimMatrix()
|
|
SimMatrix(IMatrix x)
|
|
SimMatrix(int n)
|
|
SimMatrix(int[][] x)
|
Method Summary | |
---|---|
void |
addPrediction(int actually,
int predicted)
Add a prediction, which was actually category a, but predicted to be in category b. |
double |
matthews(int a)
Return the Matthews correlation coefficient for category A. |
double |
pctRight()
return percent right, from 0 to 100. |
double |
pctRightActually(int a)
Return the percent right only for predictions of items which actually belonged to category A. |
double |
pctRightPred(int a)
Return the percent right only for predictions of items which were predicted to be in category A. |
int |
rightActually(int a)
How many of the items that actually belonged to category A were predicted correctly? |
int |
rightPred(int a)
How many of the items predicted to be in category A were predicted correctly? |
int |
totalActually(int a)
How many items are there in category A? |
int |
totalPred(int a)
How many items predicted to be in category A? |
int |
wrongActually(int a)
How many of the items that actually belonged to category A were predicted incorrectly? |
int |
wrongPred(int a)
How many of the items predicted to be in category A were predicted incorrectly? |
Methods inherited from class org.strbio.math.StatsMatrix |
---|
clear |
Methods inherited from class org.strbio.math.IMatrix |
---|
add, add, cols, equals, isEmpty, load, load, load, max, min, multiply, multiply, multiply, print, rows, save, save, saveBinary, saveBinary, setValue, setValueAt, subtract, subtract, valueAt |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimMatrix()
public SimMatrix(int n)
public SimMatrix(IMatrix x)
public SimMatrix(int[][] x)
Method Detail |
---|
public final double pctRight()
pctRight
in class StatsMatrix
public final double matthews(int a)
matthews
in class StatsMatrix
public final double pctRightActually(int a)
pctRightActually
in class StatsMatrix
public final int rightActually(int a)
rightActually
in class StatsMatrix
public final int wrongActually(int a)
wrongActually
in class StatsMatrix
public final int totalActually(int a)
totalActually
in class StatsMatrix
public final void addPrediction(int actually, int predicted)
public final double pctRightPred(int a)
public final int rightPred(int a)
public final int wrongPred(int a)
public final int totalPred(int a)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |