public class UnmodeledFavoredPolicy extends java.lang.Object implements Policy, EnumerablePolicy
| Modifier and Type | Field and Description | 
|---|---|
protected java.util.List<ActionType> | 
allActionTypes  | 
protected KWIKModel | 
model  | 
protected Policy | 
sourcePolicy  | 
| Constructor and Description | 
|---|
UnmodeledFavoredPolicy(Policy sourcePolicy,
                      KWIKModel model,
                      java.util.List<ActionType> actionTypes)  | 
| Modifier and Type | Method and Description | 
|---|---|
Action | 
action(State s)
This method will return an action sampled by the policy for the given state. 
 | 
double | 
actionProb(State s,
          Action a)
Returns the probability/probability density that the given action will be taken in the given state. 
 | 
boolean | 
definedFor(State s)
Specifies whether this policy is defined for the input state. 
 | 
java.util.List<ActionProb> | 
policyDistribution(State s)
This method will return action probability distribution defined by the policy. 
 | 
protected Policy sourcePolicy
protected KWIKModel model
protected java.util.List<ActionType> allActionTypes
public UnmodeledFavoredPolicy(Policy sourcePolicy, KWIKModel model, java.util.List<ActionType> actionTypes)
public Action action(State s)
Policypublic double actionProb(State s, Action a)
PolicyactionProb in interface Policys - the state of interesta - the action that may be taken in the statepublic java.util.List<ActionProb> policyDistribution(State s)
EnumerablePolicypolicyDistribution in interface EnumerablePolicys - the state for which an action distribution should be returnedpublic boolean definedFor(State s)
PolicydefinedFor in interface Policys - the input state to test for whether this policy is definedState s, false otherwise.