|
||||||||||
| 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()
Return a string that represents this query as a probability "problem". |
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 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 BayesianQuery
public 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 Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||