Class LocalGraphPrecision
java.lang.Object
edu.cmu.tetrad.algcomparison.statistic.LocalGraphPrecision
- All Implemented Interfaces:
Statistic,Serializable
The LocalGraphPrecision class implements the Statistic interface and represents the Local Graph Precision statistic.
It calculates the precision between the true graph and the estimated graph locally.
- See Also:
-
Field Summary
Fields inherited from interface edu.cmu.tetrad.algcomparison.statistic.Statistic
serialVersionUID -
Constructor Summary
ConstructorsConstructorDescriptionThe default constructor of the LocalGraphPrecision class. -
Method Summary
Modifier and TypeMethodDescriptionThis method returns the abbreviation for the statistic.Returns a short one-line description of this statistic.doublegetNormValue(double value) This method returns the normalized value of a given statistic.doublegetValue(Graph trueGraph, Graph estGraph, DataModel dataModel, Parameters parameters) This method calculates the Local Graph Precision.
-
Constructor Details
-
LocalGraphPrecision
public LocalGraphPrecision()The default constructor of the LocalGraphPrecision class.
-
-
Method Details
-
getAbbreviation
This method returns 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.- Specified by:
getDescriptionin interfaceStatistic- Returns:
- The description of the statistic.
-
getValue
This method calculates the Local Graph Precision. It calculates the precision between the true graph and the estimated graph locally. -
getNormValue
public double getNormValue(double value) This method returns 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.
-