Class LocalGraphConfusion

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

public class LocalGraphConfusion extends Object
A confusion matrix for local graph accuracy check --i.e. TP, FP, TN, FN for counts of a combination of arrowhead and precision.
  • Constructor Summary

    Constructors
    Constructor
    Description
    LocalGraphConfusion(Graph trueGraph, Graph estGraph)
    Constructs a new LocalGraphConfusion object from the given graphs.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the false negatives (FN) value of the LocalGraphConfusion object.
    int
    Retrieves the value of false positives (FP) from the LocalGraphConfusion object.
    int
    Retrieves the value of true negatives (TN) from the LocalGraphConfusion object.
    int
    Returns the true positives (TP) value of the LocalGraphConfusion object.

    Methods inherited from class java.lang.Object

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

    • LocalGraphConfusion

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

    • getTp

      public int getTp()
      Returns the true positives (TP) value of the LocalGraphConfusion object.
      Returns:
      The true positives (TP) value.
    • getTn

      public int getTn()
      Retrieves the value of true negatives (TN) from the LocalGraphConfusion object.
      Returns:
      The true negatives (TN) value.
    • getFp

      public int getFp()
      Retrieves the value of false positives (FP) from the LocalGraphConfusion object.
      Returns:
      The false positives (FP) value.
    • getFn

      public int getFn()
      Returns the false negatives (FN) value of the LocalGraphConfusion object.
      Returns:
      The false negatives (FN) value.