org.encog.ml.bayesian.query.sample
public class SamplingQuery extends BasicQuery implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_SAMPLE_SIZE
The default sample size.
|
| Constructor and Description |
|---|
SamplingQuery(BayesianNetwork theNetwork)
Construct a sampling query.
|
| Modifier and Type | Method and Description |
|---|---|
SamplingQuery |
clone() |
String |
dumpCurrentState() |
void |
execute()
Execute the query.
|
double |
getProbability() |
int |
getSampleSize() |
void |
setSampleSize(int sampleSize) |
String |
toString() |
defineEventType, finalizeStructure, getEvents, getEventState, getEventType, getEvidenceEvents, getNetwork, getOutcomeEvents, getProblem, isNeededEvidence, locateEventTypes, reset, satisfiesDesiredOutcome, setEventValue, setEventValuepublic static final int DEFAULT_SAMPLE_SIZE
public SamplingQuery(BayesianNetwork theNetwork)
theNetwork - The network that will be queried.public int getSampleSize()
public void setSampleSize(int sampleSize)
sampleSize - the sampleSize to setpublic void execute()
execute in interface BayesianQuerypublic double getProbability()
getProbability in interface BayesianQuerypublic String dumpCurrentState()
public SamplingQuery clone()
clone in interface BayesianQueryclone in class BasicQueryCopyright © 2014. All Rights Reserved.