|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.encog.ml.bayesian.query.BasicQuery
public abstract class BasicQuery
Provides basic functionality for a Bayesian query. This class is abstract, and is not used directly. Rather, other queries make use of it.
Constructor Summary | |
---|---|
BasicQuery()
Default constructor. |
|
BasicQuery(BayesianNetwork theNetwork)
|
Method Summary | |
---|---|
BayesianQuery |
clone()
|
void |
defineEventType(BayesianEvent event,
EventType et)
Define an event type to be either hidden(default), evidence(input) or outcome (output). |
void |
finalizeStructure()
|
Map<BayesianEvent,EventState> |
getEvents()
|
EventState |
getEventState(BayesianEvent event)
Get the event state for a given event. |
EventType |
getEventType(BayesianEvent event)
Get the event type. |
List<BayesianEvent> |
getEvidenceEvents()
|
BayesianNetwork |
getNetwork()
|
List<BayesianEvent> |
getOutcomeEvents()
|
String |
getProblem()
|
protected boolean |
isNeededEvidence()
|
void |
locateEventTypes()
Called to locate the evidence and outcome events. |
void |
reset()
Reset all event types back to hidden. |
protected boolean |
satisfiesDesiredOutcome()
|
void |
setEventValue(BayesianEvent event,
boolean b)
Set the event value to a boolean. |
void |
setEventValue(BayesianEvent event,
int d)
Set the event value as a class item. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.encog.ml.bayesian.query.BayesianQuery |
---|
execute, getProbability |
Constructor Detail |
---|
public BasicQuery()
public BasicQuery(BayesianNetwork theNetwork)
Method Detail |
---|
public void finalizeStructure()
finalizeStructure
in interface BayesianQuery
public BayesianNetwork getNetwork()
getNetwork
in interface BayesianQuery
public Map<BayesianEvent,EventState> getEvents()
getEvents
in interface BayesianQuery
public List<BayesianEvent> getEvidenceEvents()
getEvidenceEvents
in interface BayesianQuery
public List<BayesianEvent> getOutcomeEvents()
getOutcomeEvents
in interface BayesianQuery
public void locateEventTypes()
locateEventTypes
in interface BayesianQuery
public void reset()
reset
in interface BayesianQuery
public void defineEventType(BayesianEvent event, EventType et)
defineEventType
in interface BayesianQuery
event
- The event to define.et
- THe new event type.public EventState getEventState(BayesianEvent event)
getEventState
in interface BayesianQuery
event
- The event to get the state for.
public EventType getEventType(BayesianEvent event)
getEventType
in interface BayesianQuery
event
- The event to check.
protected boolean isNeededEvidence()
protected boolean satisfiesDesiredOutcome()
public void setEventValue(BayesianEvent event, boolean b)
setEventValue
in interface BayesianQuery
event
- The event.b
- The value.public void setEventValue(BayesianEvent event, int d)
setEventValue
in interface BayesianQuery
event
- The event to set.d
- An integer class item.public String getProblem()
getProblem
in interface BayesianQuery
public BayesianQuery clone()
clone
in interface BayesianQuery
clone
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |