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
ConstructorDescriptionAggregatingCoherenceMeasure
(RealVectorNorm norm, AggregationFunction aggregator) Constructor -
Method Summary
Modifier and TypeMethodDescriptiondouble
coherence
(MarkovLogicNetwork mln, AbstractMlnReasoner reasoner, FolSignature signature) Measures the coherence of the given MLN using the given reasoner.boolean
int
hashCode()
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: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
- Specified by:
toString
in classAbstractCoherenceMeasure
-
hashCode
-
equals
-