|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcalhoun.analysis.crf.statistics.PredictedActualBinaryContingencyTable
public class PredictedActualBinaryContingencyTable
| Constructor Summary | |
|---|---|
PredictedActualBinaryContingencyTable()
|
|
| Method Summary | |
|---|---|
int |
an()
Actual Negatives |
int |
ap()
Actual Positives |
double |
approximateCorrelation()
This is the approximate correlation. |
double |
averageConditionalProbability()
This is the average conditional probability. |
double |
averageSensitivitySpecificity()
This is the average of sensitivity and specifity. |
double |
correlationCoefficient()
This is the Pearson correlation of two 0-1 random variables X=prediction and Y=reality CC = Cov(X,Y)/(Stddev(X)*Stddev(Y)) If either RV has zero variance, the CC is underfined: assertion faliure If this contingency table is not tracking TN, then CC is undefined: assertion failure |
void |
forgetTN()
|
void |
freeze()
|
int |
getFN()
|
int |
getFP()
|
int |
getTN()
|
int |
getTP()
|
void |
increment(boolean predicted,
boolean actual)
|
void |
incrementFN()
|
void |
incrementFP()
|
void |
incrementTN()
|
void |
incrementTP()
|
int |
pn()
Predicted Negatives |
int |
pp()
Predicted Positives |
double |
sensitivity()
Sensitivity is TP/(TP+FN) is the fraction of actual events that are predicted. |
void |
set(int tp,
int fp,
int fn)
|
void |
set(int tp,
int fp,
int fn,
int tn)
|
double |
specificity()
Specificity is the TP/(TP+FP) is the fraction of predicted events that are real. |
java.lang.String |
summarize()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PredictedActualBinaryContingencyTable()
| Method Detail |
|---|
public void set(int tp,
int fp,
int fn,
int tn)
public void set(int tp,
int fp,
int fn)
public void forgetTN()
public void incrementTP()
public void incrementFP()
public void incrementFN()
public void incrementTN()
public void increment(boolean predicted,
boolean actual)
public void freeze()
public int getTP()
public int getFP()
public int getFN()
public int getTN()
public int ap()
public int an()
public int pp()
public int pn()
public double correlationCoefficient()
public double averageConditionalProbability()
public double approximateCorrelation()
public double averageSensitivitySpecificity()
public double sensitivity()
public double specificity()
public java.lang.String summarize()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||