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 TypeMethodDescriptionint
getFn()
Returns the false negatives (FN) value of the LocalGraphConfusion object.int
getFp()
Retrieves the value of false positives (FP) from the LocalGraphConfusion object.int
getTn()
Retrieves the value of true negatives (TN) from the LocalGraphConfusion object.int
getTp()
Returns the true positives (TP) value of the LocalGraphConfusion object.
-
Constructor Details
-
LocalGraphConfusion
-
-
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.
-