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 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 and Description |
---|
AggregatingCoherenceMeasure(RealVectorNorm norm,
AggregationFunction aggregator) |
Modifier and Type | Method and 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() |
private static final long serialVersionUID
private RealVectorNorm norm
private AggregationFunction aggregator
public AggregatingCoherenceMeasure(RealVectorNorm norm, AggregationFunction aggregator)
public double coherence(MarkovLogicNetwork mln, AbstractMlnReasoner reasoner, FolSignature signature)
AbstractCoherenceMeasure
coherence
in class AbstractCoherenceMeasure
mln
- some MLNreasoner
- some reasonersignature
- a signaturepublic java.lang.String toString()
toString
in class AbstractCoherenceMeasure
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object