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.
Version:
$Id: $Id
Author:
josephramsey
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructs a new AdjacencyConfusion object from the given graphs.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the false negative count.
    int
    Returns the false positive count.
    int
    Returns the true negative count.
    int
    Returns the true positive count.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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.