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

    Constructors
    Constructor
    Description
    Constructs a new confusion matrix for bidirected edges.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the number of false negatives.
    int
    Returns the number of false positives.
    int
    Returns the number of true negatives.
    int
    Returns the number of true positives.

    Methods inherited from class java.lang.Object

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