Class sdm::FunctionReward
Class List > sdm > FunctionReward
This class provides getters and setters for the reward model.
#include <function_reward.hpp>
Inherits the following classes: sdm::RewardInterface
Public Functions
Type | Name |
---|---|
FunctionReward () | |
FunctionReward (const std::string & expression) | |
FunctionReward (const FunctionReward & copy) | |
virtual double | getMaxReward (number t) const |
virtual double | getMinReward (number t) const |
virtual double | getReward (const std::shared_ptr< State > & state, const std::shared_ptr< Action > & action, number t) const |
void | setMaxReward (number t, double max_value) |
void | setMinReward (number t, double min_value) |
Public Functions inherited from sdm::RewardInterface
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 |
Protected Attributes
Type | Name |
---|---|
std::string | expression |
double | max = = -999999 |
double | min = = +999999 |
Public Functions Documentation
function FunctionReward [1/3]
sdm::FunctionReward::FunctionReward ()
function FunctionReward [2/3]
sdm::FunctionReward::FunctionReward (
const std::string & expression
)
function FunctionReward [3/3]
sdm::FunctionReward::FunctionReward (
const FunctionReward & copy
)
function getMaxReward
virtual double sdm::FunctionReward::getMaxReward (
number t
) const
Implements sdm::RewardInterface::getMaxReward
function getMinReward
virtual double sdm::FunctionReward::getMinReward (
number t
) const
Implements sdm::RewardInterface::getMinReward
function getReward
virtual double sdm::FunctionReward::getReward (
const std::shared_ptr< State > & state,
const std::shared_ptr< Action > & action,
number t
) const
Implements sdm::RewardInterface::getReward
function setMaxReward
void sdm::FunctionReward::setMaxReward (
number t,
double max_value
)
function setMinReward
void sdm::FunctionReward::setMinReward (
number t,
double min_value
)
Protected Attributes Documentation
variable expression
std::string sdm::FunctionReward::expression;
variable max
double sdm::FunctionReward::max;
variable min
double sdm::FunctionReward::min;
The documentation for this class was generated from the following file src/sdm/core/reward/function_reward.hpp