Public Member Functions | Public Attributes
DiscretizationAgent Class Reference

#include <DiscretizationAgent.hh>

Inheritance diagram for DiscretizationAgent:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DiscretizationAgent (int statesPerDim, Agent *a, std::vector< float > featmin, std::vector< float > featmax, bool d)
 DiscretizationAgent (std::vector< int > statesPerDim, Agent *a, std::vector< float > featmin, std::vector< float > featmax, bool d)
std::vector< float > discretizeState (const std::vector< float > &s)
virtual int first_action (const std::vector< float > &s)
void initEverything (Agent *a, std::vector< float > fmin, std::vector< float > fmax, bool d)
virtual void last_action (float r)
virtual int next_action (float r, const std::vector< float > &s)
virtual void savePolicy (const char *filename)
virtual void seedExp (std::vector< experience > seeds)
virtual void setDebug (bool b)
 ~DiscretizationAgent ()

Public Attributes

Agentagent
bool DEBUG
std::vector< float > featmax
std::vector< float > featmin
std::vector< int > statesPerDim

Detailed Description

Definition at line 10 of file DiscretizationAgent.hh.


Constructor & Destructor Documentation

DiscretizationAgent::DiscretizationAgent ( int  statesPerDim,
Agent a,
std::vector< float >  featmin,
std::vector< float >  featmax,
bool  d 
)

Definition at line 4 of file DiscretizationAgent.cc.

DiscretizationAgent::DiscretizationAgent ( std::vector< int >  statesPerDim,
Agent a,
std::vector< float >  featmin,
std::vector< float >  featmax,
bool  d 
)

Definition at line 14 of file DiscretizationAgent.cc.

Definition at line 49 of file DiscretizationAgent.cc.


Member Function Documentation

std::vector< float > DiscretizationAgent::discretizeState ( const std::vector< float > &  s)

Definition at line 72 of file DiscretizationAgent.cc.

int DiscretizationAgent::first_action ( const std::vector< float > &  s) [virtual]

Implements Agent.

Definition at line 53 of file DiscretizationAgent.cc.

void DiscretizationAgent::initEverything ( Agent a,
std::vector< float >  fmin,
std::vector< float >  fmax,
bool  d 
)

Definition at line 29 of file DiscretizationAgent.cc.

void DiscretizationAgent::last_action ( float  r) [virtual]

Implements Agent.

Definition at line 65 of file DiscretizationAgent.cc.

int DiscretizationAgent::next_action ( float  r,
const std::vector< float > &  s 
) [virtual]

Implements Agent.

Definition at line 59 of file DiscretizationAgent.cc.

void DiscretizationAgent::savePolicy ( const char *  filename) [virtual]

Reimplemented from Agent.

Definition at line 113 of file DiscretizationAgent.cc.

void DiscretizationAgent::seedExp ( std::vector< experience seeds) [virtual]

Reimplemented from Agent.

Definition at line 98 of file DiscretizationAgent.cc.

void DiscretizationAgent::setDebug ( bool  b) [virtual]

Implements Agent.

Definition at line 70 of file DiscretizationAgent.cc.


Member Data Documentation

Definition at line 33 of file DiscretizationAgent.hh.

Definition at line 36 of file DiscretizationAgent.hh.

std::vector<float> DiscretizationAgent::featmax

Definition at line 35 of file DiscretizationAgent.hh.

std::vector<float> DiscretizationAgent::featmin

Definition at line 34 of file DiscretizationAgent.hh.

Definition at line 32 of file DiscretizationAgent.hh.


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


rl_agent
Author(s): Todd Hester
autogenerated on Thu Jun 6 2019 22:00:14