Class NumCorrectBidirected
java.lang.Object
edu.cmu.tetrad.algcomparison.statistic.NumCorrectBidirected
- All Implemented Interfaces:
Statistic, Serializable
-
Constructor Summary
ConstructorsConstructorDescriptionCounts the number of bidirectional edges for which a latent confounder of X and Y exists. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the abbreviation for the statistic.Returns a short one-line description of this statistic.doublegetNormValue(double value) Returns the normalized value of the given statistic.doublegetValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Returns the number of bidirected edges for which a latent confounder exists.
-
Constructor Details
-
NumCorrectBidirected
public NumCorrectBidirected()Counts the number of bidirectional edges for which a latent confounder of X and Y exists.
-
-
Method Details
-
getAbbreviation
Retrieves the abbreviation for the statistic.- Specified by:
getAbbreviationin interfaceStatistic- Returns:
- The abbreviation for the statistic.
-
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 statistics as a String.
-
getValue
public double getValue(Graph trueDag, Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Returns the number of bidirected edges for which a latent confounder exists.- 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).dataModel- The data model.parameters- The parameters- Returns:
- The number of bidirected edges with a latent confounder.
-
getNormValue
public double getNormValue(double value) Returns the normalized value of the given statistic.- Specified by:
getNormValuein interfaceStatistic- Parameters:
value- The value of the statistic.- Returns:
- The normalized value.
-