public class AggregatingCoherenceMeasure extends AbstractCoherenceMeasure
| Modifier and Type | Field and Description |
|---|---|
private AggregationFunction |
aggregator
The aggregation function used to aggregate the distances for each formula.
|
private DistanceFunction |
distance
The distance function used to measure the difference of the probabilities
of each ground instance for a single formula.
|
private static long |
serialVersionUID |
| Constructor and Description |
|---|
AggregatingCoherenceMeasure(DistanceFunction distance,
AggregationFunction aggregator) |
| Modifier and Type | Method and Description |
|---|---|
double |
coherence(MarkovLogicNetwork mln,
Reasoner 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() |
private static final long serialVersionUID
private DistanceFunction distance
private AggregationFunction aggregator
public AggregatingCoherenceMeasure(DistanceFunction distance, AggregationFunction aggregator)
public double coherence(MarkovLogicNetwork mln, Reasoner reasoner, FolSignature signature)
AbstractCoherenceMeasurecoherence in class AbstractCoherenceMeasuremln - some MLNreasoner - some reasonersignature - a signaturepublic java.lang.String toString()
toString in class AbstractCoherenceMeasurepublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object