Reinforcement Learning Toolbox 2.0
last updated:
General
Documentation
Manual
Tutorial
Class Reference
Master Thesis
Examples
Related Papers
Downloads
Links
News
mailto:webmaster
Main Page     Class Hierarchy   Compound List   File List   Compound Members   File Members

CVFunctionAnalyzer Class Reference

Analyzer for V-Functions. More...

#include <canalyzer.h>

List of all members.



Public Member Functions

  CVFunctionAnalyzer (CAbstractVFunction *vFunction, CStateProperties *modelState, std::list< CStateModifier * > *modifiers)
  Create a new V-Function Analyzer.

virtual  ~CVFunctionAnalyzer ()
void  save1DValues (FILE *stream, CState *initstate, int dim1, int part1)
  Create a 1 dimensional Table of the Shape of the V-Function.

void  save2DValues (FILE *stream, CState *initstate, int dim1, int part1, int dim2, int part2)
  Create a 2 dimensional Table of the Shape of the V-Function.

void  saveStateValues (FILE *stream, CStateList *states)
  Creates a table of the values of the specified states.

void  save1DValues (char *filename, CState *initstate, int dim1, int part1)
  Create a 1 dimensional Table of the Shape of the V-Function.

void  save2DValues (char *filename, CState *initstate, int dim1, int part1, int dim2, int part2)
  Create a 2 dimensional Table of the Shape of the V-Function.

void  saveStateValues (char *filename, CStateList *states)
  Creates a table of the values of the specified states.

void  setVFunction (CAbstractVFunction *vFunction)


Protected Attributes

CAbstractVFunction vFunction
CStateProperties modelStateProperties
CStateCollectionImpl stateCollection

Detailed Description

Analyzer for V-Functions.

With V-Function Analyzers you can create different tables for showing the shape of your continuous V-Function. These tables can only be saved to a file. The analyzer supports:

  • 1 dimensional Tables
  • 2 dimensional Tables
  • calculate the Value for each State in a given list

A 1-dimensional Table can be created with the function save1DValues. You can choose the dimension for which the table shall be created and the number of partitions for this dimension. Addtionally you can specify an init-state, this init-state is used for the state values for all other dimensions. This function can only be used for continuous state variables. A 2-dimensional Table can be created with the function save2DValues. You can choose both dimension, and the number of partitions for each dimension. The initstate is used in the same way as for 1-D Tables. This function can only be used for continuous state variables. The table for specific states is created saveStateValues, here you just have to specify the states in the state list object. This function can also be used for discrete states.


Constructor & Destructor Documentation

CVFunctionAnalyzer::CVFunctionAnalyzer CAbstractVFunction vFunction,
CStateProperties modelState,
std::list< CStateModifier * > *  modifiers
 

Create a new V-Function Analyzer.

The analyzer needs the vFunction, the modelstate and all the modifiers the v-function needs. It is recommended to take the agent's state modifiers (agent->getStateModifiers();).

virtual CVFunctionAnalyzer::~CVFunctionAnalyzer  )  [virtual]
 

Member Function Documentation

void CVFunctionAnalyzer::save1DValues char *  filename,
CState initstate,
int  dim1,
int  part1
 

Create a 1 dimensional Table of the Shape of the V-Function.

A 1-dimensional Table can be created with the function save1DValues. You can choose the dimension for which the table shall be created and the number of partitions for this dimension. Addtionally you can specify an init-state, this init-state is used for the state values for all other dimensions. This function can only be used for continuous state variables.

void CVFunctionAnalyzer::save1DValues FILE *  stream,
CState initstate,
int  dim1,
int  part1
 

Create a 1 dimensional Table of the Shape of the V-Function.

A 1-dimensional Table can be created with the function save1DValues. You can choose the dimension for which the table shall be created and the number of partitions for this dimension. Addtionally you can specify an init-state, this init-state is used for the state values for all other dimensions. This function can only be used for continuous state variables.

void CVFunctionAnalyzer::save2DValues char *  filename,
CState initstate,
int  dim1,
int  part1,
int  dim2,
int  part2
 

Create a 2 dimensional Table of the Shape of the V-Function.

A 2-dimensional Table can be created with the function save2DValues. You can choose both dimension, and the number of partitions for each dimension. The initstate is used in the same way as for 1-D Tables. This function can only be used for continuous state variables.

void CVFunctionAnalyzer::save2DValues FILE *  stream,
CState initstate,
int  dim1,
int  part1,
int  dim2,
int  part2
 

Create a 2 dimensional Table of the Shape of the V-Function.

A 2-dimensional Table can be created with the function save2DValues. You can choose both dimension, and the number of partitions for each dimension. The initstate is used in the same way as for 1-D Tables. This function can only be used for continuous state variables.

void CVFunctionAnalyzer::saveStateValues char *  filename,
CStateList states
 

Creates a table of the values of the specified states.

void CVFunctionAnalyzer::saveStateValues FILE *  stream,
CStateList states
 

Creates a table of the values of the specified states.

void CVFunctionAnalyzer::setVFunction CAbstractVFunction vFunction  ) 
 

Member Data Documentation

CStateProperties* CVFunctionAnalyzer::modelStateProperties [protected]
 
CStateCollectionImpl* CVFunctionAnalyzer::stateCollection [protected]
 
CAbstractVFunction* CVFunctionAnalyzer::vFunction [protected]
 

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