public class SamplingQuery extends BasicQuery implements java.io.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() |
java.lang.String |
dumpCurrentState() |
void |
execute()
Execute the query.
|
double |
getProbability() |
int |
getSampleSize() |
void |
setSampleSize(int sampleSize) |
java.lang.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 java.lang.String dumpCurrentState()
public SamplingQuery clone()
clone in interface BayesianQueryclone in class BasicQuerypublic java.lang.String toString()
toString in class java.lang.Object