DiscreteActionEnv::State Class Reference

Implementation of state of the dummy environment. More...

Public Member Functions

 State ()
 Construct a state instance. More...

 
 State (const arma::colvec &data)
 Construct a state instance from given data. More...

 
arma::colvec & Data ()
 Modify the internal representation of the state. More...

 
const arma::colvec & Encode () const
 Encode the state to a column vector. More...

 

Static Public Attributes

static size_t dimension
 Dimension of the encoded state. More...

 

Detailed Description

Implementation of state of the dummy environment.

Definition at line 38 of file env_type.hpp.

Constructor & Destructor Documentation

◆ State() [1/2]

State ( )
inline

Construct a state instance.

Definition at line 44 of file env_type.hpp.

Referenced by DiscreteActionEnv::InitialSample(), and ContinuousActionEnv::InitialSample().

◆ State() [2/2]

State ( const arma::colvec &  data)
inline

Construct a state instance from given data.

Parameters
dataData for the state.

Definition at line 52 of file env_type.hpp.

Member Function Documentation

◆ Data()

arma::colvec& Data ( )
inline

Modify the internal representation of the state.

Definition at line 56 of file env_type.hpp.

◆ Encode()

const arma::colvec& Encode ( ) const
inline

Encode the state to a column vector.

Definition at line 59 of file env_type.hpp.

Member Data Documentation

◆ dimension

size_t dimension
static

Dimension of the encoded state.

Definition at line 62 of file env_type.hpp.


The documentation for this class was generated from the following file:
  • /home/ryan/src/mlpack.org/_src/mlpack-git/src/mlpack/methods/reinforcement_learning/environment/env_type.hpp