Class LocalGraphConfusion
java.lang.Object
edu.cmu.tetrad.algcomparison.statistic.utils.LocalGraphConfusion
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
ConstructorsConstructorDescriptionLocalGraphConfusion(Graph trueGraph, Graph estGraph) Constructs a new LocalGraphConfusion object from the given graphs. -
Method Summary
Modifier and TypeMethodDescriptionintgetFn()Returns the false negatives (FN) value of the LocalGraphConfusion object.intgetFp()Retrieves the value of false positives (FP) from the LocalGraphConfusion object.intgetTn()Retrieves the value of true negatives (TN) from the LocalGraphConfusion object.intgetTp()Returns the true positives (TP) value of the LocalGraphConfusion object.
-
Constructor Details
-
LocalGraphConfusion
Constructs a new LocalGraphConfusion object from the given graphs.- Parameters:
trueGraph- The true graphestGraph- 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.
-