Class AncestorF1
java.lang.Object
edu.cmu.tetrad.algcomparison.statistic.AncestorF1
- All Implemented Interfaces:
Statistic,Serializable
Calculates the F1 statistic for adjacencies. See
https://en.wikipedia.org/wiki/F1_score
We use what's on this page called the "traditional" F1 statistic.
- Author:
- Joseh Ramsey
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the name of the statistic.Returns the name of the statistic.doublegetNormValue(double value) Returns the norm value of the statistic.doubleCalculates the F1 statistic for adjacencies.
-
Constructor Details
-
AncestorF1
public AncestorF1()Constructs the statistic.
-
-
Method Details
-
getAbbreviation
Returns the name of the statistic.- Specified by:
getAbbreviationin interfaceStatistic- Returns:
- the name of the statistic
-
getDescription
Returns the name of the statistic.- Specified by:
getDescriptionin interfaceStatistic- Returns:
- the name of the statistic
-
getValue
Calculates the F1 statistic for adjacencies. -
getNormValue
public double getNormValue(double value) Returns the norm value of the statistic.- Specified by:
getNormValuein interfaceStatistic- Parameters:
value- The value of the statistic.- Returns:
- the value of the statistic
-