public class TigerDomain.TigerObservations extends ObservationFunction
ObservationFunction.ObservationProbability| Modifier and Type | Field and Description |
|---|---|
protected double |
listenAccuracy |
domain| Constructor and Description |
|---|
TigerDomain.TigerObservations(PODomain domain,
double listenAccuracy) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canEnumerateObservations()
Returns whether this object can enumerate observations and implements the
ObservationFunction.getAllPossibleObservations() and
ObservationFunction.getObservationProbability(burlap.oomdp.core.states.State, burlap.oomdp.core.states.State, burlap.oomdp.singleagent.GroundedAction)
methods. |
java.util.List<State> |
getAllPossibleObservations()
Returns a
List containing all possible observations. |
java.util.List<ObservationFunction.ObservationProbability> |
getObservationProbabilities(State state,
GroundedAction action)
Returns the observation probability mass/density function for all observations that have non-zero mass/density conditioned on the true MDP state and previous action taken that led to the state.
|
double |
getObservationProbability(State observation,
State state,
GroundedAction action)
Returns the probability that an observation will be observed conditioned on the MDP state and previous action taken that led to the state.
|
protected State |
observationLeft()
Returns the observation of hearing the tiger behind the left door
|
protected State |
observationNothing()
Returns the observation of hearing nothing; occurs when the do nothing action is selected
|
protected State |
observationReset()
Returns the observation of approaching a new pair of doors
|
protected State |
observationRight()
Returns the observation of hearing the tiger behind the right door
|
State |
sampleObservation(State state,
GroundedAction action)
Samples an observation given the true MDP state and action taken in the previous step that led to the MDP state.
|
getObservationProbabilitiesByEnumeration, sampleObservationByEnumerationpublic TigerDomain.TigerObservations(PODomain domain, double listenAccuracy)
public boolean canEnumerateObservations()
ObservationFunctionObservationFunction.getAllPossibleObservations() and
ObservationFunction.getObservationProbability(burlap.oomdp.core.states.State, burlap.oomdp.core.states.State, burlap.oomdp.singleagent.GroundedAction)
methods.canEnumerateObservations in class ObservationFunctionpublic java.util.List<State> getAllPossibleObservations()
ObservationFunctionList containing all possible observations. Observations are represented with a class that implements the State
interface, since observations may consist of multiple observations of distinct objects in the world.getAllPossibleObservations in class ObservationFunctionList of all possible observations.public State sampleObservation(State state, GroundedAction action)
ObservationFunctionsampleObservation in class ObservationFunctionstate - the true MDP stateaction - the action that led to the MDP stateState.public double getObservationProbability(State observation, State state, GroundedAction action)
ObservationFunctiongetObservationProbability in class ObservationFunctionobservation - the observation, represented by a Statestate - The true MDP state that generated the observation.action - the action that led to the MDP state and which generated the observationpublic java.util.List<ObservationFunction.ObservationProbability> getObservationProbabilities(State state, GroundedAction action)
ObservationFunctionList of ObservationFunction.ObservationProbability objects,
which is a pair of an observation (represented by a State and double specifying its mass/density.getObservationProbabilities in class ObservationFunctionstate - the true MDP state that generated the observationsaction - the action that led to the MDP state and which generated the observations.List of ObservationFunction.ObservationProbability objects.protected State observationLeft()
State specifying the observation of hearing the tiger behind the left doorprotected State observationRight()
State specifying the observation of hearing the tiger behind the right doorprotected State observationReset()
State specifying the observation of approaching a new pair of doors