Class ArrowConfusion
java.lang.Object
edu.cmu.tetrad.algcomparison.statistic.utils.ArrowConfusion
A confusion matrix for arrows--i.e. TP, FP, TN, FN for counts of arrow endpoints. A true positive arrow is counted
for X*->Y in the estimated graph if X is not adjacent to Y or X--Y or X<--Y.
- Author:
- josephramsey, rubens (November, 2016)
-
Constructor Summary
ConstructorsConstructorDescriptionArrowConfusion
(Graph truth, Graph est) ArrowConfusion
(Graph truth, Graph est, boolean truthAdj) -
Method Summary
-
Constructor Details
-
ArrowConfusion
-
ArrowConfusion
-
-
Method Details
-
getTp
public int getTp() -
getFp
public int getFp() -
getFn
public int getFn() -
getTn
public int getTn() -
getTwoCycleTp
public int getTwoCycleTp() -
getTwoCycleFp
public int getTwoCycleFp() -
getTwoCycleFn
public int getTwoCycleFn() -
getTpc
public int getTpc()Two positives for common edges. -
getFpc
public int getFpc()False positives for common edges. -
getFnc
public int getFnc()False negatives for common edges. -
getTnc
public int getTnc()True Negatives for common edges. -
isTruthAdj
public boolean isTruthAdj()
-