Class CondProbConfirmationMeasure
java.lang.Object
org.aksw.palmetto.calculations.direct.AbstractUndefinedResultHandlingConfirmationMeasure
org.aksw.palmetto.calculations.direct.CondProbConfirmationMeasure
- All Implemented Interfaces:
ConfirmationMeasure,DirectConfirmationMeasure
This confirmation measure calculates the conditional probability of W' given
W*. result = P(W',W*)/P(W*)
- Author:
- Michael Röder
-
Field Summary
Fields inherited from class org.aksw.palmetto.calculations.direct.AbstractUndefinedResultHandlingConfirmationMeasure
resultIfCalcUndefined -
Constructor Summary
ConstructorsConstructorDescriptionConstructor.CondProbConfirmationMeasure(double resultIfCalcUndefined)Constructor. -
Method Summary
Modifier and TypeMethodDescriptiondouble[]calculateConfirmationValues(SubsetProbabilities subsetProbabilities)Calculates the confirmation values for the given subset probabilities.getName()Returns the name of the measure.Methods inherited from class org.aksw.palmetto.calculations.direct.AbstractUndefinedResultHandlingConfirmationMeasure
getResultIfCalcUndefined, setResultIfCalcUndefined
-
Constructor Details
-
CondProbConfirmationMeasure
public CondProbConfirmationMeasure()Constructor. -
CondProbConfirmationMeasure
public CondProbConfirmationMeasure(double resultIfCalcUndefined)Constructor.- Parameters:
resultIfCalcUndefined- value which should be returned if the calculation is not defined.
-
-
Method Details
-
calculateConfirmationValues
Description copied from interface:DirectConfirmationMeasureCalculates the confirmation values for the given subset probabilities.- Parameters:
subsetProbabilities- subset probabilities used for the calculation- Returns:
- confirmation values
-
getName
Description copied from interface:ConfirmationMeasureReturns the name of the measure.- Returns:
- the name of the measure.
-