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.
-
-
Constructor Summary
Constructors Constructor Description MeanDistanceCulpabilityMeasure(OptimizationRootFinder rootFinder, 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).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.
-
-
-
Constructor Detail
-
MeanDistanceCulpabilityMeasure
public MeanDistanceCulpabilityMeasure(OptimizationRootFinder rootFinder, boolean normalized)
Creates a new measure.- Parameters:
rootFinder
- a root findernormalized
- whether this measure uses the normalized mindev measure.
-
-
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}
-
-