Class TrueDagPrecisionTails
java.lang.Object
edu.cmu.tetrad.algcomparison.statistic.TrueDagPrecisionTails
- All Implemented Interfaces:
Statistic, Serializable
-
Constructor Summary
ConstructorsConstructorDescriptionThis class represents a statistic that calculates the precision for tails compared to the true DAG. -
Method Summary
Modifier and TypeMethodDescriptionReturns the abbreviation for the statistic.Returns a short one-line description of this statistic.doublegetNormValue(double value) Calculates the normalized value of a statistic.doublegetValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates the precision of directed edges in the estimated graph (estGraph) relative to a true directed acyclic graph (trueDag).
-
Constructor Details
-
TrueDagPrecisionTails
public TrueDagPrecisionTails()This class represents a statistic that calculates the precision for tails compared to the true DAG.
-
-
Method Details
-
getAbbreviation
Returns the abbreviation for the statistic.- Specified by:
getAbbreviationin interfaceStatistic- Returns:
- The abbreviation string.
-
getDescription
Returns a short one-line description of this statistic. This will be printed at the beginning of the report.- Specified by:
getDescriptionin interfaceStatistic- Returns:
- The description of the statistic.
-
getValue
public double getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates the precision of directed edges in the estimated graph (estGraph) relative to a true directed acyclic graph (trueDag). The precision is measured as the proportion of edges X-->Y in the estimated graph for which there is a path X~~>Y in the true DAG.- Specified by:
getValuein interfaceStatistic- Parameters:
trueDag- The true directed acyclic graph (DAG) used as a reference for evaluation.trueGraph- The overall true graph which may contain additional information (not directly used in this method).estGraph- The estimated graph containing the edges to be evaluated.dataModel- The data model used (not directly used in the current calculation).parameters- Additional parameters for computation (not directly used in the current calculation).- Returns:
- The precision value as a double, representing the proportion of correctly identified directed edges.
-
getNormValue
public double getNormValue(double value) Calculates the normalized value of a statistic.- Specified by:
getNormValuein interfaceStatistic- Parameters:
value- The value of the statistic.- Returns:
- The normalized value of the statistic.
-