Class DefaultCompatibilityMeasure
- java.lang.Object
-
- net.sf.tweety.logics.mln.analysis.DefaultCompatibilityMeasure
-
- All Implemented Interfaces:
CompatibilityMeasure
public class DefaultCompatibilityMeasure extends java.lang.Object implements CompatibilityMeasure
This class represents the default compatibility measure that uses a coherence measure.- Author:
- Matthias Thimm
-
-
Constructor Summary
Constructors Constructor Description DefaultCompatibilityMeasure(AbstractCoherenceMeasure coherenceMeasure)
Creates a new compatibility measure.
-
Method Summary
Modifier and Type Method Description double
compatibility(java.util.List<MarkovLogicNetwork> mlns, AbstractMlnReasoner reasoner, java.util.List<FolSignature> signatures)
Measures the compatibility of the given MLNs wrt.boolean
equals(java.lang.Object obj)
int
hashCode()
java.lang.String
toString()
-
-
-
Constructor Detail
-
DefaultCompatibilityMeasure
public DefaultCompatibilityMeasure(AbstractCoherenceMeasure coherenceMeasure)
Creates a new compatibility measure.- Parameters:
coherenceMeasure
- the coherence measure used for computing compatibility.
-
-
Method Detail
-
compatibility
public double compatibility(java.util.List<MarkovLogicNetwork> mlns, AbstractMlnReasoner reasoner, java.util.List<FolSignature> signatures)
Description copied from interface:CompatibilityMeasure
Measures the compatibility of the given MLNs wrt. the given signatures using the given reasoner.- Specified by:
compatibility
in interfaceCompatibilityMeasure
- Parameters:
mlns
- a list of MLNs.reasoner
- some reasoner.signatures
- a set of signatures, one for each MLN.- Returns:
- the compatibility value
-
toString
public java.lang.String toString()
- Specified by:
toString
in interfaceCompatibilityMeasure
- Overrides:
toString
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-