Class TrueDagTruePositiveArrow
java.lang.Object
edu.cmu.tetrad.algcomparison.statistic.TrueDagTruePositiveArrow
- All Implemented Interfaces:
Statistic, Serializable
-
Constructor Summary
ConstructorsConstructorDescriptionThis class represents a statistic that calculates the true positives for arrows compared to the true DAG. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the abbreviation for the statistic.Retrieves a short one-line description of this statistic.doublegetNormValue(double value) Retrieves the normalized value of the statistic.doublegetValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Computes the count of bidirected true positives for arrows in the estimated graph compared to the true graph.
-
Constructor Details
-
TrueDagTruePositiveArrow
public TrueDagTruePositiveArrow()This class represents a statistic that calculates the true positives for arrows compared to the true DAG.
-
-
Method Details
-
getAbbreviation
Retrieves the abbreviation for the statistic.- Specified by:
getAbbreviationin interfaceStatistic- Returns:
- The abbreviation.
-
getDescription
Retrieves a short one-line description of this statistic.- Specified by:
getDescriptionin interfaceStatistic- Returns:
- The description of the statistic.
-
getValue
public double getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Computes the count of bidirected true positives for arrows in the estimated graph compared to the true graph. An edge is considered a bidirected true positive if it contains an arrow endpoint that does not imply ancestry contrary to the structure of the true graph.- Specified by:
getValuein interfaceStatistic- Parameters:
trueDag- The true directed acyclic graph (DAG) representing the ground truth.trueGraph- The true graph representing the ground-truth relationships.estGraph- The estimated graph being evaluated.dataModel- The data model used in the evaluation.parameters- Additional parameters required for the computation.- Returns:
- The count of bidirected true positives for the arrow endpoints.
-
getNormValue
public double getNormValue(double value) Retrieves the normalized value of the statistic.- Specified by:
getNormValuein interfaceStatistic- Parameters:
value- The value of the statistic.- Returns:
- The normalized value of the statistic.
-