Go to the documentation of this file.
12 #ifndef MLPACK_METHODS_RL_ENVIRONMENT_ENV_TYPE_HPP
13 #define MLPACK_METHODS_RL_ENVIRONMENT_ENV_TYPE_HPP
52 State(
const arma::colvec& data) : data(data)
56 arma::colvec&
Data() {
return data; }
59 const arma::colvec&
Encode()
const {
return data; }
143 State(
const arma::colvec& data) : data(data)
147 arma::colvec&
Data() {
return data; }
150 const arma::colvec&
Encode()
const {
return data; }
arma::colvec & Data()
Modify the internal representation of the state.
State InitialSample()
Dummy function to mimic initial sampling in an environment.
The core includes that mlpack expects; standard C++ includes and Armadillo.
bool IsTerminal(const State &) const
Dummy function to find terminal state.
double Sample(const State &, const Action &, State &)
Dummy function to mimic sampling in an environment.
Implementation of state of the dummy environment.
Implementation of discrete action.
State()
Construct a state instance.
std::vector< double > action
Linear algebra utility functions, generally performed on matrices or vectors.
State()
Construct a state instance.
To use the dummy environment, one may start by specifying the state and action dimensions.
static size_t dimension
Dimension of the encoded state.
const arma::colvec & Encode() const
Encode the state to a column vector.
arma::colvec & Data()
Modify the internal representation of the state.
static size_t dimension
Dimension of the encoded state.
Implementation of state of the dummy environment.
bool IsTerminal(const State &) const
Dummy function to find terminal state.
State InitialSample()
Dummy function to mimic initial sampling in an environment.
State(const arma::colvec &data)
Construct a state instance from given data.
To use the dummy environment, one may start by specifying the state and action dimensions.
State(const arma::colvec &data)
Construct a state instance from given data.
Implementation of continuous action.
Action()
Construct an action instance.
double Sample(const State &, const Action &, State &)
Dummy function to mimic sampling in an environment.
const arma::colvec & Encode() const
Encode the state to a column vector.