Class CircleConfusion

java.lang.Object
edu.cmu.tetrad.algcomparison.statistic.utils.CircleConfusion

public class CircleConfusion extends Object
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

    Constructors
    Constructor
    Description
    Constructs a new CircleConfusion object.
    CircleConfusion(Graph truth, Graph est, boolean truthAdj)
    Constructs a new CircleConfusion object.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    False negatives.
    int
    False negatives for common edges.
    int
    False positives.
    int
    False positives for common edges.
    int
    True negatives.
    int
    True Negatives for common edges.
    int
    True positives.
    int
    True positives for common edges.
    boolean
    Returns true if the truth graph is used to determine adjacency for circle FP's.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CircleConfusion

      public CircleConfusion(Graph truth, Graph est)
      Constructs a new CircleConfusion object.
      Parameters:
      truth - the true graph
      est - the estimated graph
    • CircleConfusion

      public CircleConfusion(Graph truth, Graph est, boolean truthAdj)
      Constructs a new CircleConfusion object.
      Parameters:
      truth - the true graph
      est - the estimated graph
      truthAdj - 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