Class sdm::RewardInterface

Class List > sdm > RewardInterface

This class provides a common interface for every models of reward. More...

  • #include <reward_interface.hpp>

Inherited by the following classes: sdm::FunctionReward, sdm::TabularReward

Public Functions

Type Name
virtual double getMaxReward (number t) const = 0
virtual double getMinReward (number t) const = 0
virtual double getReward (const std::shared_ptr< State > & state, const std::shared_ptr< Action > & action, number t) const = 0

Detailed Description

A model of reward is well defined if it implements this interface. A reward model is required to define a MDP (see file MDP.hpp) and related problems. Basically, there is two types of reward models : the tabular model (tabular_reward.hpp) and the function based model (function_reward.hpp).

Public Functions Documentation

function getMaxReward

virtual double sdm::RewardInterface::getMaxReward (
    number t
) const = 0

function getMinReward

virtual double sdm::RewardInterface::getMinReward (
    number t
) const = 0

function getReward

virtual double sdm::RewardInterface::getReward (
    const std::shared_ptr< State > & state,
    const std::shared_ptr< Action > & action,
    number t
) const = 0

The documentation for this class was generated from the following file src/sdm/core/reward/reward_interface.hpp