aima.probability.decision
Class MDPTransitionModel<STATE_TYPE,ACTION_TYPE>
java.lang.Object
aima.probability.decision.MDPTransitionModel<STATE_TYPE,ACTION_TYPE>
public class MDPTransitionModel<STATE_TYPE,ACTION_TYPE>
- extends java.lang.Object
Method Summary |
double |
getTransitionProbability(STATE_TYPE initialState,
ACTION_TYPE action,
STATE_TYPE finalState)
|
java.util.List<MDPTransition<STATE_TYPE,ACTION_TYPE>> |
getTransitionsWithStartingStateAndAction(STATE_TYPE s,
ACTION_TYPE a)
|
Pair<ACTION_TYPE,java.lang.Double> |
getTransitionWithMaximumExpectedUtility(STATE_TYPE s,
MDPUtilityFunction<STATE_TYPE> uf)
|
Pair<ACTION_TYPE,java.lang.Double> |
getTransitionWithMaximumExpectedUtilityUsingPolicy(MDPPolicy<STATE_TYPE,ACTION_TYPE> policy,
STATE_TYPE s,
MDPUtilityFunction<STATE_TYPE> uf)
|
ACTION_TYPE |
randomActionFor(STATE_TYPE s)
|
void |
setTransitionProbability(STATE_TYPE initialState,
ACTION_TYPE action,
STATE_TYPE finalState,
double probability)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MDPTransitionModel
public MDPTransitionModel(java.util.List<STATE_TYPE> terminalStates)
setTransitionProbability
public void setTransitionProbability(STATE_TYPE initialState,
ACTION_TYPE action,
STATE_TYPE finalState,
double probability)
getTransitionProbability
public double getTransitionProbability(STATE_TYPE initialState,
ACTION_TYPE action,
STATE_TYPE finalState)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getTransitionWithMaximumExpectedUtility
public Pair<ACTION_TYPE,java.lang.Double> getTransitionWithMaximumExpectedUtility(STATE_TYPE s,
MDPUtilityFunction<STATE_TYPE> uf)
getTransitionWithMaximumExpectedUtilityUsingPolicy
public Pair<ACTION_TYPE,java.lang.Double> getTransitionWithMaximumExpectedUtilityUsingPolicy(MDPPolicy<STATE_TYPE,ACTION_TYPE> policy,
STATE_TYPE s,
MDPUtilityFunction<STATE_TYPE> uf)
getTransitionsWithStartingStateAndAction
public java.util.List<MDPTransition<STATE_TYPE,ACTION_TYPE>> getTransitionsWithStartingStateAndAction(STATE_TYPE s,
ACTION_TYPE a)
randomActionFor
public ACTION_TYPE randomActionFor(STATE_TYPE s)