Class DistanceMinimizationInconsistencyMeasure
- java.lang.Object
-
- net.sf.tweety.logics.commons.analysis.BeliefSetInconsistencyMeasure<ProbabilisticConditional>
-
- net.sf.tweety.logics.pcl.analysis.DistanceMinimizationInconsistencyMeasure
-
- All Implemented Interfaces:
PostulateEvaluatable<ProbabilisticConditional>
,InconsistencyMeasure<BeliefSet<ProbabilisticConditional,?>>
- Direct Known Subclasses:
NormalizedDistanceMinimizationInconsistencyMeasure
public class DistanceMinimizationInconsistencyMeasure extends BeliefSetInconsistencyMeasure<ProbabilisticConditional>
This class models the distance minimization inconsistency measure as proposed in [Thimm,UAI,2009], extended by the use of different p-norms.- Author:
- Matthias Thimm
-
-
Field Summary
-
Fields inherited from interface net.sf.tweety.logics.commons.analysis.InconsistencyMeasure
MEASURE_TOLERANCE
-
-
Constructor Summary
Constructors Constructor Description DistanceMinimizationInconsistencyMeasure(OptimizationRootFinder rootFinder)
Creates a new measure for p=1.DistanceMinimizationInconsistencyMeasure(OptimizationRootFinder rootFinder, int p)
Creates a new measure for the given p.
-
Method Summary
Modifier and Type Method Description java.lang.Double
getDeviation(PclBeliefSet beliefSet, ProbabilisticConditional pc)
Returns the deviation of the given conditional in the nearest consistent belief set.java.lang.Double
inconsistencyMeasure(java.util.Collection<ProbabilisticConditional> formulas)
This method measures the inconsistency of the given set of formulas.-
Methods inherited from class net.sf.tweety.logics.commons.analysis.BeliefSetInconsistencyMeasure
inconsistencyMeasure
-
-
-
-
Constructor Detail
-
DistanceMinimizationInconsistencyMeasure
public DistanceMinimizationInconsistencyMeasure(OptimizationRootFinder rootFinder)
Creates a new measure for p=1.
-
DistanceMinimizationInconsistencyMeasure
public DistanceMinimizationInconsistencyMeasure(OptimizationRootFinder rootFinder, int p)
Creates a new measure for the given p.- Parameters:
p
- some parameter for the p-norm.
-
-
Method Detail
-
getDeviation
public java.lang.Double getDeviation(PclBeliefSet beliefSet, ProbabilisticConditional pc)
Returns the deviation of the given conditional in the nearest consistent belief set.- Parameters:
beliefSet
- some belief set.pc
- a probabilistic conditional.- Returns:
- a double.
-
inconsistencyMeasure
public java.lang.Double inconsistencyMeasure(java.util.Collection<ProbabilisticConditional> formulas)
Description copied from class:BeliefSetInconsistencyMeasure
This method measures the inconsistency of the given set of formulas.- Specified by:
inconsistencyMeasure
in classBeliefSetInconsistencyMeasure<ProbabilisticConditional>
- Parameters:
formulas
- a collection of formulas.- Returns:
- a Double indicating the degree of inconsistency.
-
-