Class AdjacencyConfusion

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

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

    • AdjacencyConfusion

      public AdjacencyConfusion(Graph truth, Graph est)
      Constructs a new AdjacencyConfusion object from the given graphs.
      Parameters:
      truth - The true graph.
      est - The estimated graph.
  • Method Details

    • getTp

      public int getTp()
      Returns the true positive count.
      Returns:
      the true positive count.
    • getFp

      public int getFp()
      Returns the false positive count.
      Returns:
      the false positive count.
    • getFn

      public int getFn()
      Returns the false negative count.
      Returns:
      the false negative count.
    • getTn

      public int getTn()
      Returns the true negative count.
      Returns:
      the true negative count.