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

Public Member Functions

 State ()
 Construct a state instance.
 
 State (const arma::colvec &data)
 Construct a state instance from given data. More...
 
arma::colvec & Data ()
 Modify the state representation.
 
double Theta1 () const
 Get value of theta (one).
 
double & Theta1 ()
 Modify value of theta (one).
 
double Theta2 () const
 Get value of theta (two).
 
double & Theta2 ()
 Modify value of theta (two).
 
double AngularVelocity1 () const
 Get value of Angular velocity (one).
 
double & AngularVelocity1 ()
 Modify the angular velocity (one).
 
double AngularVelocity2 () const
 Get value of Angular velocity (two).
 
double & AngularVelocity2 ()
 Modify the angular velocity (two).
 
const arma::colvec & Encode () const
 Encode the state to a column vector.
 

Static Public Attributes

static constexpr size_t dimension = 4
 Dimension of the encoded state.
 

Constructor & Destructor Documentation

◆ State()

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

Construct a state instance from given data.

Parameters
dataData for the theta and angular velocity of two links.

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