|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BayesianQuery
A Bayesian query. This is used to query a Bayesian network and determine a the probability of an output, given some input. The input is called evidence, and the output is the outcome. This results in a final probability of the output being what you specified. You can easily change the events between evidence and outcome, this allows the Bayesian network to be queried in nearly any way. It is also possible to omit missing evidence to handle missing data.
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 |
execute()
Execute the query. |
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()
|
double |
getProbability()
|
String |
getProblem()
|
void |
locateEventTypes()
Called to locate the evidence and outcome events. |
void |
reset()
Reset all event types back to hidden. |
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. |
Method Detail |
---|
BayesianNetwork getNetwork()
Map<BayesianEvent,EventState> getEvents()
List<BayesianEvent> getEvidenceEvents()
List<BayesianEvent> getOutcomeEvents()
void reset()
void defineEventType(BayesianEvent event, EventType et)
event
- The event to define.et
- THe new event type.EventState getEventState(BayesianEvent event)
event
- The event to get the state for.
EventType getEventType(BayesianEvent event)
event
- The event to check.
void setEventValue(BayesianEvent event, boolean b)
event
- The event.b
- The value.void setEventValue(BayesianEvent event, int d)
event
- The event to set.d
- An integer class item.String getProblem()
void execute()
double getProbability()
void finalizeStructure()
void locateEventTypes()
BayesianQuery clone()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |