Class BidirectedConfusion

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

public class BidirectedConfusion extends Object
A confusion matrix for bidireced edges--i.e. TP, FP, TN, FN for counts of bidirected edges.
Author:
josephramsey
  • Constructor Details

    • BidirectedConfusion

      public BidirectedConfusion(Graph truth, Graph est)
      Constructs a new confusion matrix for bidirected edges.
      Parameters:
      truth - The true graph.
      est - The estimated graph.
  • Method Details

    • getTp

      public int getTp()
      Returns the number of true positives.
      Returns:
      The number of true positives.
    • getFp

      public int getFp()
      Returns the number of false positives.
      Returns:
      The number of false positives.
    • getFn

      public int getFn()
      Returns the number of false negatives.
      Returns:
      The number of false negatives.
    • getTn

      public int getTn()
      Returns the number of true negatives.
      Returns:
      The number of true negatives.