Class SemidirectedPrecision
java.lang.Object
edu.cmu.tetrad.algcomparison.statistic.SemidirectedPrecision
- All Implemented Interfaces:
Statistic, Serializable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the abbreviation for the statistic.Returns a short one-line description of this statistic.doublegetNormValue(double value) Returns the normalized value of the statistic.doublegetValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates the potentially directed precision value.
-
Constructor Details
-
SemidirectedPrecision
public SemidirectedPrecision()Constructs the statistic.
-
-
Method Details
-
getAbbreviation
Returns the abbreviation for the statistic.- Specified by:
getAbbreviationin interfaceStatistic- Returns:
- The abbreviation.
-
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 potentially directed precision value.- 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 potentially directed precision value.
-
getNormValue
public double getNormValue(double value) Returns the normalized value of the statistic.- Specified by:
getNormValuein interfaceStatistic- Parameters:
value- The value of the statistic.- Returns:
- The normalized value of the statistic.
-