Methods
# abstract encodeStateToIndices(state) → {Array.<number>}
encode the state into an number array
Parameters:
| Name | Type | Description | 
|---|---|---|
state | 
  
  
  
      
object
  
   | 
  
  
  the state to encode  | 
an numbers array
Array.<number>
    # abstract init(optionsnullable, initialStatenullable) → {void}
initialize the environment
Parameters:
| Name | Type | Attributes | Description | 
|---|---|---|---|
options | 
  
  
  
      
EnvOptions
  
   | 
  
      
      
      
          <nullable> | 
  
  
  the environment options  | 
initialState | 
  
  
  
      
object
  
   | 
  
      
      
      
          <nullable> | 
  
  
  the optional initial state of the environment  | 
void
    # abstract resetStats() → {boolean}
reset the stats accumulated over the life time of the environment
True if the reset was sucessfull
boolean
    # abstract setOptions(optionsnullable) → {void}
Set the environment options
Parameters:
| Name | Type | Attributes | Description | 
|---|---|---|---|
options | 
  
  
  
      
EnvOptions
  
   | 
  
      
      
      
          <nullable> | 
  
  
  
void
    # abstract step(action) → {StepResult}
take an action in the environment
Parameters:
| Name | Type | Description | 
|---|---|---|
action | 
  
  
  
      
string
  
   | 
  
  
  the action to take  | 
the result of the taken action