Class AggregatingCoherenceMeasure
java.lang.Object
org.tweetyproject.logics.mln.analysis.AbstractCoherenceMeasure
org.tweetyproject.logics.mln.analysis.AggregatingCoherenceMeasure
- All Implemented Interfaces:
Serializable
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:
-
Constructor Summary
ConstructorsConstructorDescriptionAggregatingCoherenceMeasure(RealVectorNorm norm, AggregationFunction aggregator) Constructor -
Method Summary
Modifier and TypeMethodDescriptiondoublecoherence(MarkovLogicNetwork mln, AbstractMlnReasoner reasoner, FolSignature signature) Measures the coherence of the given MLN using the given reasoner.booleaninthashCode()toString()
-
Constructor Details
-
AggregatingCoherenceMeasure
Constructor- Parameters:
norm- The Normaggregator- The Aggragating function
-
-
Method Details
-
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
- Specified by:
toStringin classAbstractCoherenceMeasure
-
hashCode
-
equals
-