Class PercentAmbiguous
java.lang.Object
edu.cmu.tetrad.algcomparison.statistic.PercentAmbiguous
- All Implemented Interfaces:
Statistic,Serializable
The adjacency precision. The true positives are the number of adjacencies in both the true and estimated graphs.
- Version:
- $Id: $Id
- Author:
- josephramsey
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the abbreviation for the statistic.Retrieves the description of the statistic.doublegetNormValue(double value) Calculates the normalized value of a statistic given the original value.doublegetValue(Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) Calculates the percentage of ambiguous triples in the estimated graph compared to the true graph.
-
Constructor Details
-
PercentAmbiguous
public PercentAmbiguous()Constructs a new instance of the statistic.
-
-
Method Details
-
getAbbreviation
Retrieves the abbreviation for the statistic.- Specified by:
getAbbreviationin interfaceStatistic- Returns:
- The abbreviation for the statistic.
-
getDescription
Retrieves the description of the statistic.- Specified by:
getDescriptionin interfaceStatistic- Returns:
- The description of the statistic.
-
getValue
Calculates the percentage of ambiguous triples in the estimated graph compared to the true graph. -
getNormValue
public double getNormValue(double value) Calculates the normalized value of a statistic given the original value.- Specified by:
getNormValuein interfaceStatistic- Parameters:
value- The value of the statistic.- Returns:
- The normalized value of the statistic.
-