Class TrueDagTruePositiveDirectedPathNonancestor
java.lang.Object
edu.cmu.tetrad.algcomparison.statistic.TrueDagTruePositiveDirectedPathNonancestor
- 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 the description of the statistic.doublegetNormValue(double value) Retrieves the normalized value of a statistic.doublegetValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Computes the number of true positives for directed paths in the estimated graph that are consistent with the true graph, excluding cases where the estimated graph incorrectly identifies the reverse relationship.
-
Constructor Details
-
TrueDagTruePositiveDirectedPathNonancestor
public TrueDagTruePositiveDirectedPathNonancestor()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 the description of the 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 number of true positives for directed paths in the estimated graph that are consistent with the true graph, excluding cases where the estimated graph incorrectly identifies the reverse relationship.- Specified by:
getValuein interfaceStatistic- Parameters:
trueDag- The true directed acyclic graph (DAG) structure.trueGraph- The correct graph structure representing the true relationships between nodes.estGraph- The estimated graph structure to be evaluated.dataModel- A data model associated with the graphs (not directly used in this method).parameters- Parameters associated with the evaluation (not directly used in this method).- Returns:
- The count of true positive directed paths in the estimated graph that match the true graph.
-
getNormValue
public double getNormValue(double value) Retrieves the normalized value of a statistic.- Specified by:
getNormValuein interfaceStatistic- Parameters:
value- The value of the statistic.- Returns:
- The normalized value of the statistic.
-