Class ProportionSemidirectedPathsNotReversedTrue
java.lang.Object
edu.cmu.tetrad.algcomparison.statistic.ProportionSemidirectedPathsNotReversedTrue
- All Implemented Interfaces:
Statistic,Serializable
Proportion of semi(X, Y) in true graph for which there is no semi(Y, Z) in estimated graph.
- Version:
- $Id: $Id
- Author:
- josephramsey
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new instance of the statistic. -
Method Summary
Modifier and TypeMethodDescriptionReturns the abbreviation for the statistic.Returns a short one-line description of this statistic.doublegetNormValue(double value) Calculates the normalized value of a given statistic.doublegetValue(Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates the proportion of semi(X, Y) paths in the true graph for which there is no semi(Y, Z) path in the estimated graph.
-
Constructor Details
-
ProportionSemidirectedPathsNotReversedTrue
public ProportionSemidirectedPathsNotReversedTrue()Constructs a new instance of the statistic.
-
-
Method Details
-
getAbbreviation
Returns the abbreviation for the statistic. The abbreviation is a short string that represents the statistic and will be printed at the top of each column in the report.- 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 statistic.
-
getValue
Calculates the proportion of semi(X, Y) paths in the true graph for which there is no semi(Y, Z) path in the estimated 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) paths that do not have a semi(Y, Z) path in the estimated graph.
-
getNormValue
public double getNormValue(double value) Calculates the normalized value of a given statistic.- Specified by:
getNormValuein interfaceStatistic- Parameters:
value- The value of the statistic.- Returns:
- The normalized value of the statistic.
-