Class PagAdjacencyRecall
java.lang.Object
edu.cmu.tetrad.algcomparison.statistic.PagAdjacencyRecall
- All Implemented Interfaces:
Statistic, Serializable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the abbreviation for the given statistic.Returns a short one-line description of this statistic.doublegetNormValue(double value) Retrieves the normalized value of this statistic.doublegetValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates the adjacency recall compared to the true PAG (Partial Ancestral Graph).
-
Constructor Details
-
PagAdjacencyRecall
public PagAdjacencyRecall()Constructs a new instance of the statistic.
-
-
Method Details
-
getAbbreviation
Retrieves the abbreviation for the given statistic.- Specified by:
getAbbreviationin interfaceStatistic- Returns:
- The abbreviation as a 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 adjacency recall compared to the true PAG (Partial Ancestral Graph).- Specified by:
getValuein interfaceStatistic- Parameters:
trueDag- The true DAG.trueGraph- The true graph (DAG, CPDAG, PAG of the true DAG).estGraph- The estimated graph (same type as trueGraph).dataModel- The data model.parameters- The parameters- Returns:
- The adjacency recall value as a double.
-
getNormValue
public double getNormValue(double value) Retrieves the normalized value of this statistic.- Specified by:
getNormValuein interfaceStatistic- Parameters:
value- The value of the statistic.- Returns:
- The normalized value of the statistic.
-