public class HashedTransitionProbability
extends java.lang.Object
TransitionProbability
, except it stores StateHashTuple
objects
instead of State
objects.Modifier and Type | Field and Description |
---|---|
double |
p |
StateHashTuple |
sh |
Constructor and Description |
---|
HashedTransitionProbability(State s,
double p,
StateHashFactory hashingFactory)
Takes a
State object, hashes it, and sets the transition probability to the hashed state to p |
HashedTransitionProbability(StateHashTuple sh,
double p)
Initializes with a
StateHashTuple and probability for the transition |
HashedTransitionProbability(TransitionProbability tp,
StateHashFactory hashingFactory)
Takes a
TransitionProbability and hashes its state using the hashingFactory object |
public StateHashTuple sh
public double p
public HashedTransitionProbability(StateHashTuple sh, double p)
StateHashTuple
and probability for the transitionsh
- the hashed state that the agent transitions top
- the probability of the transitionpublic HashedTransitionProbability(State s, double p, StateHashFactory hashingFactory)
State
object, hashes it, and sets the transition probability to the hashed state to ps
- the state that the agent transitions top
- the probability of the transitionhashingFactory
- the hashing factory to use to hash the input statepublic HashedTransitionProbability(TransitionProbability tp, StateHashFactory hashingFactory)
TransitionProbability
and hashes its state using the hashingFactory objecttp
- the TransitionProbability
to hashhashingFactory
- the hashing factory to use.