public abstract class AbstractMlnReasoner extends Object implements net.sf.tweety.commons.QuantitativeReasoner<MarkovLogicNetwork,net.sf.tweety.logics.fol.syntax.FolFormula>
| Constructor and Description |
|---|
AbstractMlnReasoner() |
| Modifier and Type | Method and Description |
|---|---|
protected double |
computeWeight(MarkovLogicNetwork mln,
net.sf.tweety.logics.fol.semantics.HerbrandInterpretation hInt,
net.sf.tweety.logics.fol.syntax.FolSignature signature)
Computes the (unnormalized) weight of the given Herbrand interpretation
with respect to the formulas in this reasoner's MLN.
|
protected abstract double |
doQuery(MarkovLogicNetwork mln,
net.sf.tweety.logics.fol.syntax.FolFormula query,
net.sf.tweety.logics.fol.syntax.FolSignature signature)
Performs the actual querying.
|
protected int |
numberOfGroundSatisfactions(net.sf.tweety.logics.fol.syntax.FolFormula formula,
net.sf.tweety.logics.fol.semantics.HerbrandInterpretation hInt,
net.sf.tweety.logics.fol.syntax.FolSignature signature)
Computes the number of instantiations of the formula, wrt.
|
Double |
query(MarkovLogicNetwork mln,
net.sf.tweety.logics.fol.syntax.FolFormula query) |
Double |
query(MarkovLogicNetwork mln,
net.sf.tweety.logics.fol.syntax.FolFormula query,
net.sf.tweety.logics.fol.syntax.FolSignature signature)
Queries the given MLN wrt.
|
public Double query(MarkovLogicNetwork mln, net.sf.tweety.logics.fol.syntax.FolFormula query)
query in interface net.sf.tweety.commons.Reasoner<Double,MarkovLogicNetwork,net.sf.tweety.logics.fol.syntax.FolFormula>public Double query(MarkovLogicNetwork mln, net.sf.tweety.logics.fol.syntax.FolFormula query, net.sf.tweety.logics.fol.syntax.FolSignature signature)
mln - some mlnquery - some querysignature - some signatureprotected double computeWeight(MarkovLogicNetwork mln, net.sf.tweety.logics.fol.semantics.HerbrandInterpretation hInt, net.sf.tweety.logics.fol.syntax.FolSignature signature)
mln - an MLNhInt - a Herbrand interpretationsignature - the underlying signatureprotected int numberOfGroundSatisfactions(net.sf.tweety.logics.fol.syntax.FolFormula formula,
net.sf.tweety.logics.fol.semantics.HerbrandInterpretation hInt,
net.sf.tweety.logics.fol.syntax.FolSignature signature)
formula - some fol formula.hInt - a Herbrand interpretation.signature - the underlying signatureprotected abstract double doQuery(MarkovLogicNetwork mln, net.sf.tweety.logics.fol.syntax.FolFormula query, net.sf.tweety.logics.fol.syntax.FolSignature signature)
mln - an MLNquery - a fol formula guaranteed to be ground.Copyright © 2019. All rights reserved.