Class MeanDistanceCulpabilityMeasure
- java.lang.Object
-
- net.sf.tweety.logics.pcl.analysis.MeanDistanceCulpabilityMeasure
-
- All Implemented Interfaces:
CulpabilityMeasure<ProbabilisticConditional,PclBeliefSet>
,SignedCulpabilityMeasure
public class MeanDistanceCulpabilityMeasure extends java.lang.Object implements SignedCulpabilityMeasure
This class implements the mean distance culpability measure, see [PhD thesis, Thimm].- Author:
- Matthias Thimm TODO: this does not work correctly yet, fix it.
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
normalized
Whether this measure uses the normalized mindev measure.
-
Constructor Summary
Constructors Constructor Description MeanDistanceCulpabilityMeasure(boolean normalized)
Creates a new measure.
-
Method Summary
Modifier and Type Method Description java.lang.Double
culpabilityMeasure(PclBeliefSet beliefSet, ProbabilisticConditional conditional)
Returns the degree of responsibility of the given formula to cause inconsistency in the given belief set (NOTE: the formula should be in the given belief set).private OptimizationProblem
getBaseProblem(PclBeliefSet beliefSet, ProbabilisticConditional conditional, double incVal)
Creates the base problem (without target function set) for determining both minimal and maximal incon values.private java.lang.Double
getMaximumValue(PclBeliefSet beliefSet, ProbabilisticConditional conditional, double incVal)
Determines the maximal value for the given conditional.private java.lang.Double
getMinimumValue(PclBeliefSet beliefSet, ProbabilisticConditional conditional, double incVal)
Determines the minimal value for the given conditional.java.lang.Double
sign(PclBeliefSet beliefSet, ProbabilisticConditional conditional)
Determines the sign of the culpability of the given conditional in the given belief set, i.e.
-
-
-
Method Detail
-
culpabilityMeasure
public java.lang.Double culpabilityMeasure(PclBeliefSet beliefSet, ProbabilisticConditional conditional)
Description copied from interface:CulpabilityMeasure
Returns the degree of responsibility of the given formula to cause inconsistency in the given belief set (NOTE: the formula should be in the given belief set).- Specified by:
culpabilityMeasure
in interfaceCulpabilityMeasure<ProbabilisticConditional,PclBeliefSet>
- Specified by:
culpabilityMeasure
in interfaceSignedCulpabilityMeasure
- Parameters:
beliefSet
- a belief set.conditional
- a formula- Returns:
- a Double indicating the degree of inconsistency (NOTE: if the given formula does not appear in the given belief set the degree is defined to be zero).
-
sign
public java.lang.Double sign(PclBeliefSet beliefSet, ProbabilisticConditional conditional)
Description copied from interface:SignedCulpabilityMeasure
Determines the sign of the culpability of the given conditional in the given belief set, i.e. one of {-1,0,1}.- Specified by:
sign
in interfaceSignedCulpabilityMeasure
- Parameters:
beliefSet
- a belief setconditional
- a conditional- Returns:
- one of {-1,0,1}
-
getMinimumValue
private java.lang.Double getMinimumValue(PclBeliefSet beliefSet, ProbabilisticConditional conditional, double incVal)
Determines the minimal value for the given conditional.- Parameters:
beliefSet
- a belief setconditional
- some conditional.incVal
- the value of the inconsistency- Returns:
- a double
-
getMaximumValue
private java.lang.Double getMaximumValue(PclBeliefSet beliefSet, ProbabilisticConditional conditional, double incVal)
Determines the maximal value for the given conditional.- Parameters:
beliefSet
- a belief setconditional
- some conditional.incVal
- the value of the inconsistency- Returns:
- a double
-
getBaseProblem
private OptimizationProblem getBaseProblem(PclBeliefSet beliefSet, ProbabilisticConditional conditional, double incVal)
Creates the base problem (without target function set) for determining both minimal and maximal incon values.- Parameters:
beliefSet
- a belief setconditional
- some conditional.incVal
- the value of the inconsistency- Returns:
- the base optimization problem
-
-