Class GraphUtils.GraphComparison

java.lang.Object
edu.cmu.tetrad.graph.GraphUtils.GraphComparison
Enclosing class:
GraphUtils

public static class GraphUtils.GraphComparison extends Object
Represents a comparison between two graphs.
  • Constructor Summary

    Constructors
    Constructor
    Description
    GraphComparison(int adjFn, int adjFp, int adjCorrect, int ahdFn, int ahdFp, int ahdCorrect, double adjPrec, double adjRec, double ahdPrec, double ahdRec, int shd, List<Edge> edgesAdded, List<Edge> edgesRemoved, int[][] counts)
    Constructs a new GraphComparison.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the adjacency correct.
    int
    Returns the adjacency false negatives.
    int
    Returns the adjacency false positives.
    double
    Returns the adjaency precision.
    double
    Returns the adjacency recall.
    int
    Returns the arrowhead correct.
    int
    Returns the arrowhead false negatives.
    int
    Returns the arrowhead false positives.
    double
    Returns the arrowhead precision.
    double
    Returns the arrowhead recall.
    int[][]
    Returns the counts.
    Returns the edges added.
    Returns the edges removed.
    int
    Returns the adjacency precision.

    Methods inherited from class java.lang.Object

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

    • GraphComparison

      public GraphComparison(int adjFn, int adjFp, int adjCorrect, int ahdFn, int ahdFp, int ahdCorrect, double adjPrec, double adjRec, double ahdPrec, double ahdRec, int shd, List<Edge> edgesAdded, List<Edge> edgesRemoved, int[][] counts)
      Constructs a new GraphComparison.
      Parameters:
      adjFn - a int
      adjFp - a int
      adjCorrect - a int
      ahdFn - a int
      ahdFp - a int
      ahdCorrect - a int
      adjPrec - a double
      adjRec - a double
      ahdPrec - a double
      ahdRec - a double
      shd - a int
      edgesAdded - a List object
      edgesRemoved - a List object
      counts - a int[][]
  • Method Details

    • getAdjFn

      public int getAdjFn()
      Returns the adjacency false negatives.
      Returns:
      the adjacency false negatives.
    • getAdjFp

      public int getAdjFp()
      Returns the adjacency false positives.
      Returns:
      the adjacency false positives.
    • getAdjCor

      public int getAdjCor()
      Returns the adjacency correct.
      Returns:
      the adjacency correct.
    • getAhdFn

      public int getAhdFn()
      Returns the arrowhead false negatives.
      Returns:
      the arrowhead false negatives.
    • getAhdFp

      public int getAhdFp()
      Returns the arrowhead false positives.
      Returns:
      the arrowhead false positives.
    • getAhdCor

      public int getAhdCor()
      Returns the arrowhead correct.
      Returns:
      the arrowhead correct.
    • getShd

      public int getShd()
      Returns the adjacency precision.
      Returns:
      the adjacency precision.
    • getEdgesAdded

      public List<Edge> getEdgesAdded()
      Returns the edges added.
      Returns:
      the edges added.
    • getEdgesRemoved

      public List<Edge> getEdgesRemoved()
      Returns the edges removed.
      Returns:
      the edges removed.
    • getAdjPrec

      public double getAdjPrec()
      Returns the adjaency precision.
      Returns:
      the adjacency precision.
    • getAdjRec

      public double getAdjRec()
      Returns the adjacency recall.
      Returns:
      the adjacency recall.
    • getAhdPrec

      public double getAhdPrec()
      Returns the arrowhead precision.
      Returns:
      the arrowhead precision.
    • getAhdRec

      public double getAhdRec()
      Returns the arrowhead recall.
      Returns:
      the arrowhead recall.
    • getCounts

      public int[][] getCounts()
      Returns the counts.
      Returns:
      the counts.