Class ProportionSemidirectedPathsNotReversedEst
java.lang.Object
edu.cmu.tetrad.algcomparison.statistic.ProportionSemidirectedPathsNotReversedEst
- All Implemented Interfaces:
Statistic,Serializable
Proportion of semi(X, Y) in estimated graph for which there is no semi(Y, X) in true graph.
- Version:
- $Id: $Id
- Author:
- josephramsey
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new instance of the statistic. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the abbreviation for the statistic.Retrieves the description of the statistic: Proportion of semi(X, Y) in estimated graph for which there is no semi(Y, X) in true graph.doublegetNormValue(double value) Retrieves the normalized value of the given statistic.doublegetValue(Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates the proportion of semi(X, Y) in the estimated graph for which there is no semi(Y, X) in the true graph.
-
Constructor Details
-
ProportionSemidirectedPathsNotReversedEst
public ProportionSemidirectedPathsNotReversedEst()Constructs a new instance of the statistic.
-
-
Method Details
-
getAbbreviation
Retrieves the abbreviation for the statistic. This abbreviation will be printed at the top of each column.- Specified by:
getAbbreviationin interfaceStatistic- Returns:
- The abbreviation for the statistic.
-
getDescription
Retrieves the description of the statistic: Proportion of semi(X, Y) in estimated graph for which there is no semi(Y, X) in true graph.- Specified by:
getDescriptionin interfaceStatistic- Returns:
- The description of the statistic.
-
getValue
Calculates the proportion of semi(X, Y) in the estimated graph for which there is no semi(Y, X) in the true graph.- Specified by:
getValuein interfaceStatistic- Parameters:
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 proportion of semi(X, Y) in the estimated graph for which there is no semi(Y, X) in the true graph.
-
getNormValue
public double getNormValue(double value) Retrieves the normalized value of the given statistic.- Specified by:
getNormValuein interfaceStatistic- Parameters:
value- The value of the statistic.- Returns:
- The normalized value of the statistic.
-