Class TailPrecision
java.lang.Object
edu.cmu.tetrad.algcomparison.statistic.TailPrecision
- All Implemented Interfaces:
Statistic
,Serializable
TailPrecision is a class that implements the Statistic interface. It calculates the tail precision, which is the
ratio of true positive arrows to the sum of true positive arrows and false positive arrows.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the abbreviation for the statistic.Returns a short one-line description of this statistic.double
getNormValue
(double value) Retrieves the normalized value of the statistic.double
Calculates the tail precision, which is the ratio of true positive arrows to the sum of true positive arrows and false positive arrows.
-
Constructor Details
-
TailPrecision
public TailPrecision()Constructs the statistic.
-
-
Method Details
-
getAbbreviation
Retrieves the abbreviation for the statistic.- Specified by:
getAbbreviation
in interfaceStatistic
- Returns:
- The abbreviation.
-
getDescription
Returns a short one-line description of this statistic.- Specified by:
getDescription
in interfaceStatistic
- Returns:
- The description of the statistic.
-
getValue
Calculates the tail precision, which is the ratio of true positive arrows to the sum of true positive arrows and false positive arrows. -
getNormValue
public double getNormValue(double value) Retrieves the normalized value of the statistic.- Specified by:
getNormValue
in interfaceStatistic
- Parameters:
value
- The value of the statistic.- Returns:
- The normalized value of the statistic.
-