mlpack
Public Member Functions | Static Public Attributes | List of all members
mlpack::rl::ContinuousMountainCar::State Class Reference

Implementation of state of Continuous Mountain Car. More...

#include <continuous_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.
 

Detailed Description

Implementation of state of Continuous Mountain Car.

Each state is a (velocity, position) vector.

Constructor & Destructor Documentation

◆ State()

mlpack::rl::ContinuousMountainCar::State::State ( const arma::colvec &  data)
inline

Construct a state based on the given data.

Parameters
dataData for the velocity and position.

The documentation for this class was generated from the following file: