Package edu.cmu.tetrad.graph
Class GraphUtils.GraphComparison
java.lang.Object
edu.cmu.tetrad.graph.GraphUtils.GraphComparison
- Enclosing class:
- GraphUtils
Represents a comparison between two graphs.
-
Constructor Summary
ConstructorsConstructorDescriptionGraphComparison(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 TypeMethodDescriptionintReturns the adjacency correct.intgetAdjFn()Returns the adjacency false negatives.intgetAdjFp()Returns the adjacency false positives.doubleReturns the adjaency precision.doubleReturns the adjacency recall.intReturns the arrowhead correct.intgetAhdFn()Returns the arrowhead false negatives.intgetAhdFp()Returns the arrowhead false positives.doubleReturns the arrowhead precision.doubleReturns the arrowhead recall.int[][]Returns the counts.Returns the edges added.Returns the edges removed.intgetShd()Returns the adjacency precision.
-
Constructor Details
-
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
Returns the edges added.- Returns:
- the edges added.
-
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.
-