aima.probability.reasoning
Class TransitionModel
java.lang.Object
aima.probability.reasoning.TransitionModel
public class TransitionModel
- extends java.lang.Object
Constructor Summary |
TransitionModel(java.util.List<java.lang.String> states)
|
TransitionModel(java.util.List<java.lang.String> states,
java.util.List<java.lang.String> actions)
|
Method Summary |
Matrix |
asMatrix()
|
Matrix |
asMatrix(java.lang.String action)
|
double |
get(java.lang.String old_state_action,
java.lang.String newState)
|
java.lang.String |
getStateForGivenActionAndProbability(java.lang.String oldState,
java.lang.String action,
double probability)
|
java.lang.String |
getStateForProbability(java.lang.String oldState,
double probability)
|
java.lang.String |
getStateForProbability(java.lang.String oldState,
java.lang.String action,
double probability)
|
void |
setTransitionProbability(java.lang.String startState,
java.lang.String endState,
java.lang.Double probability)
|
void |
setTransitionProbability(java.lang.String startState,
java.lang.String action,
java.lang.String endState,
java.lang.Double probability)
|
Matrix |
unitMatrix()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TransitionModel
public TransitionModel(java.util.List<java.lang.String> states,
java.util.List<java.lang.String> actions)
TransitionModel
public TransitionModel(java.util.List<java.lang.String> states)
setTransitionProbability
public void setTransitionProbability(java.lang.String startState,
java.lang.String endState,
java.lang.Double probability)
setTransitionProbability
public void setTransitionProbability(java.lang.String startState,
java.lang.String action,
java.lang.String endState,
java.lang.Double probability)
get
public double get(java.lang.String old_state_action,
java.lang.String newState)
asMatrix
public Matrix asMatrix(java.lang.String action)
asMatrix
public Matrix asMatrix()
unitMatrix
public Matrix unitMatrix()
getStateForProbability
public java.lang.String getStateForProbability(java.lang.String oldState,
double probability)
getStateForProbability
public java.lang.String getStateForProbability(java.lang.String oldState,
java.lang.String action,
double probability)
getStateForGivenActionAndProbability
public java.lang.String getStateForGivenActionAndProbability(java.lang.String oldState,
java.lang.String action,
double probability)