Class AggregatingCoherenceMeasure
- java.lang.Object
-
- net.sf.tweety.logics.mln.analysis.AbstractCoherenceMeasure
-
- net.sf.tweety.logics.mln.analysis.AggregatingCoherenceMeasure
-
- All Implemented Interfaces:
java.io.Serializable
public class AggregatingCoherenceMeasure extends AbstractCoherenceMeasure
This coherence measure uses an aggregation function and a distance function to measure the coherence of an MLN. For each formula in the MLN the distance function looks at the probabilities of all ground instance and compares this vector to the intended probabilities. The aggregation function is used to aggregate the distances for all formulas.- Author:
- Matthias Thimm
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AggregatingCoherenceMeasure(RealVectorNorm norm, AggregationFunction aggregator)
-
Method Summary
Modifier and Type Method Description doublecoherence(MarkovLogicNetwork mln, AbstractMlnReasoner reasoner, FolSignature signature)Measures the coherence of the given MLN using the given reasoner.booleanequals(java.lang.Object obj)inthashCode()java.lang.StringtoString()
-
-
-
Constructor Detail
-
AggregatingCoherenceMeasure
public AggregatingCoherenceMeasure(RealVectorNorm norm, AggregationFunction aggregator)
-
-
Method Detail
-
coherence
public double coherence(MarkovLogicNetwork mln, AbstractMlnReasoner reasoner, FolSignature signature)
Description copied from class:AbstractCoherenceMeasureMeasures the coherence of the given MLN using the given reasoner.- Specified by:
coherencein classAbstractCoherenceMeasure- Parameters:
mln- some MLNreasoner- some reasonersignature- a signature- Returns:
- the coherence measure of the MLN.
-
toString
public java.lang.String toString()
- Specified by:
toStringin classAbstractCoherenceMeasure
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-