org.encog.ml.bayesian.query.enumerate
public class EnumerationQuery extends BasicQuery implements Serializable
Constructor and Description |
---|
EnumerationQuery()
Default constructor.
|
EnumerationQuery(BayesianNetwork theNetwork)
Construct the enumeration query.
|
Modifier and Type | Method and Description |
---|---|
EnumerationQuery |
clone() |
void |
execute()
Execute the query.
|
boolean |
forward()
Roll the enumeration events forward by one.
|
double |
getProbability() |
void |
resetEnumeration(boolean includeEvidence,
boolean includeOutcome)
Reset the enumeration events.
|
static boolean |
roll(List<BayesianEvent> enumerationEvents,
int[] args)
Roll the enumeration events forward by one.
|
String |
toString() |
defineEventType, finalizeStructure, getEvents, getEventState, getEventType, getEvidenceEvents, getNetwork, getOutcomeEvents, getProblem, isNeededEvidence, locateEventTypes, reset, satisfiesDesiredOutcome, setEventValue, setEventValue
public EnumerationQuery(BayesianNetwork theNetwork)
theNetwork
- The Bayesian network to query.public EnumerationQuery()
public void resetEnumeration(boolean includeEvidence, boolean includeOutcome)
includeEvidence
- True if the evidence is to be reset.includeOutcome
- True if the outcome is to be reset.public boolean forward()
public void execute()
execute
in interface BayesianQuery
public double getProbability()
getProbability
in interface BayesianQuery
public static boolean roll(List<BayesianEvent> enumerationEvents, int[] args)
public EnumerationQuery clone()
clone
in interface BayesianQuery
clone
in class BasicQuery
Copyright © 2014. All Rights Reserved.