Class CircleConfusion
java.lang.Object
edu.cmu.tetrad.algcomparison.statistic.utils.CircleConfusion
A confusion matrix for circles--i.e. TP, FP, TN, FN for counts of circle endpoints. A true positive circle is counted
for X*-oY in the estimated graph if X*-oY in the true graph.
- Version:
- $Id: $Id
- Author:
- Verity Bing Chu (July, 2025)
-
Constructor Summary
ConstructorsConstructorDescriptionCircleConfusion(Graph truth, Graph est) Constructs a new CircleConfusion object.CircleConfusion(Graph truth, Graph est, boolean truthAdj) Constructs a new CircleConfusion object. -
Method Summary
Modifier and TypeMethodDescriptionintgetFn()False negatives.intgetFnc()False negatives for common edges.intgetFp()False positives.intgetFpc()False positives for common edges.intgetTn()True negatives.intgetTnc()True Negatives for common edges.intgetTp()True positives.intgetTpc()True positives for common edges.booleanReturns true if the truth graph is used to determine adjacency for circle FP's.
-
Constructor Details
-
CircleConfusion
Constructs a new CircleConfusion object.- Parameters:
truth- the true graphest- the estimated graph
-
CircleConfusion
Constructs a new CircleConfusion object.- Parameters:
truth- the true graphest- the estimated graphtruthAdj- if true, use the true graph to determine adjacency for circle FP's
-
-
Method Details
-
getTp
public int getTp()True positives.- Returns:
- the number of true positives
-
getFp
public int getFp()False positives.- Returns:
- the number of false positives
-
getFn
public int getFn()False negatives.- Returns:
- the number of false negatives
-
getTn
public int getTn()True negatives.- Returns:
- the number of true negatives
-
getTpc
public int getTpc()True positives for common edges.- Returns:
- the number of true positives for common edges
-
getFpc
public int getFpc()False positives for common edges.- Returns:
- the number of false positives for common edges
-
getFnc
public int getFnc()False negatives for common edges.- Returns:
- the number of false negatives for common edges
-
getTnc
public int getTnc()True Negatives for common edges.- Returns:
- the number of true negatives for common edges
-
isTruthAdj
public boolean isTruthAdj()Returns true if the truth graph is used to determine adjacency for circle FP's.- Returns:
- true if the truth graph is used to determine adjacency for circle FP's
-