S - some formula typeT - some belief set typepublic class HsInconsistencyMeasure<S extends Formula> extends BeliefSetInconsistencyMeasure<S>
| Modifier and Type | Field and Description |
|---|---|
private InterpretationIterator<?> |
it
Used for iterating over interpretations of the underlying language.
|
MEASURE_TOLERANCE| Constructor and Description |
|---|
HsInconsistencyMeasure(InterpretationIterator<?> it)
Creates a new inconsistency measure that uses the interpretations given
by the given iterator.
|
| Modifier and Type | Method and Description |
|---|---|
private java.util.Collection<Interpretation> |
getHittingSet(java.util.Collection<S> formulas,
int card,
java.util.Collection<Interpretation> interpretations)
Determines a hitting set of the given cardinality.
|
java.lang.Double |
inconsistencyMeasure(java.util.Collection<S> formulas)
This method measures the inconsistency of the given set of formulas.
|
private boolean |
isHittingSet(java.util.Collection<S> formulas,
java.util.Collection<Interpretation> candidate)
Checks whether the given candidate is a hitting set.
|
java.lang.String |
toString() |
inconsistencyMeasureprivate InterpretationIterator<?> it
public HsInconsistencyMeasure(InterpretationIterator<?> it)
it - some interpretation iterator.public java.lang.Double inconsistencyMeasure(java.util.Collection<S> formulas)
BeliefSetInconsistencyMeasureinconsistencyMeasure in class BeliefSetInconsistencyMeasure<S extends Formula>formulas - a collection of formulas.private java.util.Collection<Interpretation> getHittingSet(java.util.Collection<S> formulas, int card, java.util.Collection<Interpretation> interpretations)
formulas - a collection of formulascard - some cardinality.interpretations - in addition to the card interpretations also use this set for satisfying formulas.private boolean isHittingSet(java.util.Collection<S> formulas, java.util.Collection<Interpretation> candidate)
formulas - some set of formulascandidate - some set of interpretation.public java.lang.String toString()
toString in class java.lang.Object