mlpack
|
Implementation of state of Mountain Car. More...
#include <mountain_car.hpp>
Public Member Functions | |
State () | |
Construct a state instance. | |
State (const arma::colvec &data) | |
Construct a state based on the given data. More... | |
arma::colvec & | Data () |
Modify the internal representation of the state. | |
double | Velocity () const |
Get the velocity. | |
double & | Velocity () |
Modify the velocity. | |
double | Position () const |
Get the position. | |
double & | Position () |
Modify the position. | |
const arma::colvec & | Encode () const |
Encode the state to a column vector. | |
Static Public Attributes | |
static constexpr size_t | dimension = 2 |
Dimension of the encoded state. | |
Implementation of state of Mountain Car.
Each state is a (velocity, position) vector.
|
inline |
Construct a state based on the given data.
data | Data for the velocity and position. |