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; }
Implementation of continuous action.
Action()
Construct an action instance.
std::vector< double > action
Implementation of state of the dummy environment.
const arma::colvec & Encode() const
Encode the state to a column vector.
static size_t dimension
Dimension of the encoded state.
State()
Construct a state instance.
State(const arma::colvec &data)
Construct a state instance from given data.
arma::colvec & Data()
Modify the internal representation of the state.
To use the dummy environment, one may start by specifying the state and action dimensions.
double Sample(const State &, const Action &, State &)
Dummy function to mimic sampling in an environment.
bool IsTerminal(const State &) const
Dummy function to find terminal state.
State InitialSample()
Dummy function to mimic initial sampling in an environment.
Implementation of discrete action.
Implementation of state of the dummy environment.
const arma::colvec & Encode() const
Encode the state to a column vector.
static size_t dimension
Dimension of the encoded state.
State()
Construct a state instance.
State(const arma::colvec &data)
Construct a state instance from given data.
arma::colvec & Data()
Modify the internal representation of the state.
To use the dummy environment, one may start by specifying the state and action dimensions.
double Sample(const State &, const Action &, State &)
Dummy function to mimic sampling in an environment.
bool IsTerminal(const State &) const
Dummy function to find terminal state.
State InitialSample()
Dummy function to mimic initial sampling in an environment.
Linear algebra utility functions, generally performed on matrices or vectors.
The core includes that mlpack expects; standard C++ includes and Armadillo.