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
-
-
Field Summary
Fields Modifier and Type Field Description private AggregationFunction
aggregator
The aggregation function used to aggregate the distances for each formula.private RealVectorNorm
norm
The norm used to measure the difference of the probabilities of each ground instance for a single formula.private static long
serialVersionUID
-
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()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
norm
private RealVectorNorm norm
The norm used to measure the difference of the probabilities of each ground instance for a single formula.
-
aggregator
private AggregationFunction aggregator
The aggregation function used to aggregate the distances for each formula.
-
-
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
-
-