org.encog.ml.bayesian.query
public abstract class BasicQuery extends Object implements BayesianQuery, Serializable
| Constructor and Description |
|---|
BasicQuery()
Default constructor.
|
BasicQuery(BayesianNetwork theNetwork) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecute, getProbabilitypublic BasicQuery()
public BasicQuery(BayesianNetwork theNetwork)
public void finalizeStructure()
finalizeStructure in interface BayesianQuerypublic BayesianNetwork getNetwork()
getNetwork in interface BayesianQuerypublic Map<BayesianEvent,EventState> getEvents()
getEvents in interface BayesianQuerypublic List<BayesianEvent> getEvidenceEvents()
getEvidenceEvents in interface BayesianQuerypublic List<BayesianEvent> getOutcomeEvents()
getOutcomeEvents in interface BayesianQuerypublic void locateEventTypes()
locateEventTypes in interface BayesianQuerypublic void reset()
reset in interface BayesianQuerypublic void defineEventType(BayesianEvent event, EventType et)
defineEventType in interface BayesianQueryevent - The event to define.et - THe new event type.public EventState getEventState(BayesianEvent event)
getEventState in interface BayesianQueryevent - The event to get the state for.public EventType getEventType(BayesianEvent event)
getEventType in interface BayesianQueryevent - The event to check.protected boolean isNeededEvidence()
protected boolean satisfiesDesiredOutcome()
public void setEventValue(BayesianEvent event, boolean b)
setEventValue in interface BayesianQueryevent - The event.b - The value.public void setEventValue(BayesianEvent event, int d)
setEventValue in interface BayesianQueryevent - The event to set.d - An integer class item.public String getProblem()
getProblem in interface BayesianQuerypublic BayesianQuery clone()
clone in interface BayesianQueryclone in class ObjectCopyright © 2014. All Rights Reserved.