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, setEventValue
public 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 BayesianQuery
public double getProbability()
getProbability
in interface BayesianQuery
public String dumpCurrentState()
public SamplingQuery clone()
clone
in interface BayesianQuery
clone
in class BasicQuery
Copyright © 2014. All Rights Reserved.