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 double
coherence(MarkovLogicNetwork mln, AbstractMlnReasoner reasoner, FolSignature signature)
Measures the coherence of the given MLN using the given reasoner.boolean
equals(java.lang.Object obj)
int
hashCode()
java.lang.String
toString()
-
-
-
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:AbstractCoherenceMeasure
Measures the coherence of the given MLN using the given reasoner.- Specified by:
coherence
in classAbstractCoherenceMeasure
- Parameters:
mln
- some MLNreasoner
- some reasonersignature
- a signature- Returns:
- the coherence measure of the MLN.
-
toString
public java.lang.String toString()
- Specified by:
toString
in classAbstractCoherenceMeasure
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-