Class TailPrecision
java.lang.Object
edu.cmu.tetrad.algcomparison.statistic.TailPrecision
- All Implemented Interfaces:
Statistic, Serializable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the abbreviation for the statistic.Returns 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) Calculates the tail precision, which is the ratio of true positive arrows to the sum of true positive arrows and false positive arrows.
-
Constructor Details
-
TailPrecision
public TailPrecision()Constructs the statistic.
-
-
Method Details
-
getAbbreviation
Retrieves the abbreviation for the statistic.- Specified by:
getAbbreviationin interfaceStatistic- Returns:
- The abbreviation.
-
getDescription
Returns 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) Calculates the tail precision, which is the ratio of true positive arrows to the sum of true positive arrows and false positive arrows.- Specified by:
getValuein interfaceStatistic- Parameters:
trueDag- The true graph (DAG, CPDAG, PAG_of_the_true_DAG).trueGraph- The true graph (DAG, CPDAG, PAG_of_the_true_DAG).estGraph- The estimated graph (same type).dataModel- The data model.parameters- The parameters- Returns:
- The calculated tail precision value.
-
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.
-