Qualia  0.2
Public Member Functions | Public Attributes | List of all members
QLearningEGreedyPolicy Class Reference

#include <QLearningEGreedyPolicy.h>

Inheritance diagram for QLearningEGreedyPolicy:
Inheritance graph
[legend]
Collaboration diagram for QLearningEGreedyPolicy:
Collaboration graph
[legend]

Public Member Functions

 QLearningEGreedyPolicy (float epsilon)
 
virtual ~QLearningEGreedyPolicy ()
 
virtual void chooseAction (Action *action, const Observation *observation)
 
- Public Member Functions inherited from Policy
 Policy ()
 
virtual ~Policy ()
 
virtual void init ()
 
virtual void setAgent (Agent *agent_)
 

Public Attributes

float epsilon
 The value (should be in [0,1]). More...
 
- Public Attributes inherited from Policy
Agentagent
 

Detailed Description

Implements the -greedy policy.

Constructor & Destructor Documentation

QLearningEGreedyPolicy::QLearningEGreedyPolicy ( float  epsilon)
QLearningEGreedyPolicy::~QLearningEGreedyPolicy ( )
virtual

Member Function Documentation

void QLearningEGreedyPolicy::chooseAction ( Action action,
const Observation observation 
)
virtual

This method is implemented by subclasses. It chooses an action based on given observation #observation# and puts it in #action#.

Implements Policy.

Reimplemented in QLearningEDecreasingPolicy.

Member Data Documentation

float QLearningEGreedyPolicy::epsilon

The value (should be in [0,1]).


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