Template Class ModelSampling

Class Documentation

template<typename StateType, typename ValueType>
class ModelSampling

Public Types

typedef size_t ActionType

Public Functions

ModelSampling()
ModelSampling(const uint_fast32_t &seed)
ActionType sampleActionOfState(const state_properties::StateDescription<StateType, ValueType> &current_state) const

Sample a single action leaving the current state depending on the sampling strategy (for StatisticalMC)

Parameters:

current_state – The current state to sample the next action from

Returns:

The index of the next action to take

StateType sampleSuccessorFromAction(const ActionType &chosenAction, const state_properties::StateDescription<StateType, ValueType> &current_state) const

Sample the state that will be reached by selecting a specific action (for StatisticalMC)

Parameters:
  • chosenAction – The index of the selected next action

  • exploration_information – Model-related data, associating state and action IDs together

Returns:

The sampled state ID