public class SimpleSamplingMlnReasoner extends AbstractMlnReasoner
| Constructor and Description |
|---|
SimpleSamplingMlnReasoner(net.sf.tweety.commons.BeliefBase beliefBase,
net.sf.tweety.logics.fol.syntax.FolSignature signature,
double precision,
int numOfPositiveTests)
Creates a new SimpleSamplingMlnReasoner for the given Markov logic network.
|
| Modifier and Type | Method and Description |
|---|---|
protected double |
doQuery(net.sf.tweety.logics.fol.syntax.FolFormula query)
Performs the actual querying.
|
void |
reset()
Resets this reasoner (removes cached files etc.)
|
computeWeight, getSignature, numberOfGroundSatisfactions, querypublic SimpleSamplingMlnReasoner(net.sf.tweety.commons.BeliefBase beliefBase,
net.sf.tweety.logics.fol.syntax.FolSignature signature,
double precision,
int numOfPositiveTests)
beliefBase - a Markov logic network.signature - another signature (if the probability distribution should be defined
on that one (that one should subsume the signature of the Markov logic network)precision - the precisionnumOfPositiveTests - the number of positive consecutive tests on precisionpublic void reset()
AbstractMlnReasonerreset in class AbstractMlnReasonerprotected double doQuery(net.sf.tweety.logics.fol.syntax.FolFormula query)
AbstractMlnReasonerdoQuery in class AbstractMlnReasonerquery - a fol formula guaranteed to be ground.Copyright © 2018. All rights reserved.