#include <taxi.hh>

Classes | |
| class | DefaultLandmarks |
Public Member Functions | |
| virtual float | apply (int action) |
| experience | getExp (float s0, float s1, float s2, float s3, int a) |
| virtual void | getMinMaxFeatures (std::vector< float > *minFeat, std::vector< float > *maxFeat) |
| virtual void | getMinMaxReward (float *minR, float *maxR) |
| virtual int | getNumActions () |
| virtual std::vector< experience > | getSeedings () |
| virtual void | reset () |
| virtual const std::vector < float > & | sensation () const |
| void | setSensation (std::vector< float > newS) |
| Taxi (Random &rand, const Gridworld *gridworld, bool stochastic) | |
| Taxi (Random &rand) | |
| Taxi (Random &rand, bool stochastic) | |
| Taxi (Random &rand, unsigned width, unsigned height, bool stochastic) | |
| virtual bool | terminal () const |
| virtual | ~Taxi () |
Protected Types | |
| typedef std::pair< float, float > | coord_t |
| enum | taxi_action_t { NORTH, SOUTH, EAST, WEST, PICKUP, PUTDOWN } |
Private Member Functions | |
| taxi_action_t | add_noise (taxi_action_t action) |
| void | apply_fickle_passenger () |
| void | randomize_landmarks () |
| void | randomize_landmarks_to_corners () |
Static Private Member Functions | |
| static const Gridworld * | create_default_map () |
Private Attributes | |
| float & | dest |
| float & | ew |
| bool | fickle |
| const Gridworld *const | grid |
| std::vector< coord_t > | landmarks |
| const bool | noisy |
| float & | ns |
| float & | pass |
| Random & | rng |
| std::vector< float > | s |
Static Private Attributes | |
| static const DefaultLandmarks | defaultlandmarks |
typedef std::pair<float,float> Taxi::coord_t [protected] |
enum Taxi::taxi_action_t [protected] |
| Taxi::Taxi | ( | Random & | rand, |
| const Gridworld * | gridworld, | ||
| bool | stochastic | ||
| ) |
| Taxi::Taxi | ( | Random & | rand | ) |
| Taxi::Taxi | ( | Random & | rand, |
| bool | stochastic | ||
| ) |
| Taxi::Taxi | ( | Random & | rand, |
| unsigned | width, | ||
| unsigned | height, | ||
| bool | stochastic | ||
| ) |
| Taxi::~Taxi | ( | ) | [virtual] |
| Taxi::taxi_action_t Taxi::add_noise | ( | taxi_action_t | action | ) | [private] |
| float Taxi::apply | ( | int | action | ) | [virtual] |
Implements Environment.
| void Taxi::apply_fickle_passenger | ( | ) | [private] |
| const Gridworld * Taxi::create_default_map | ( | ) | [static, private] |
| experience Taxi::getExp | ( | float | s0, |
| float | s1, | ||
| float | s2, | ||
| float | s3, | ||
| int | a | ||
| ) |
| void Taxi::getMinMaxFeatures | ( | std::vector< float > * | minFeat, |
| std::vector< float > * | maxFeat | ||
| ) | [virtual] |
Implements Environment.
| void Taxi::getMinMaxReward | ( | float * | minR, |
| float * | maxR | ||
| ) | [virtual] |
Implements Environment.
| int Taxi::getNumActions | ( | ) | [virtual] |
Implements Environment.
| std::vector< experience > Taxi::getSeedings | ( | ) | [virtual] |
Reimplemented from Environment.
| void Taxi::randomize_landmarks | ( | ) | [private] |
| void Taxi::randomize_landmarks_to_corners | ( | ) | [private] |
| void Taxi::reset | ( | void | ) | [virtual] |
Implements Environment.
| const std::vector< float > & Taxi::sensation | ( | ) | const [virtual] |
Implements Environment.
| void Taxi::setSensation | ( | std::vector< float > | newS | ) | [virtual] |
Set the current state (for debug purposes)
Reimplemented from Environment.
| bool Taxi::terminal | ( | ) | const [virtual] |
Implements Environment.
const Taxi::DefaultLandmarks Taxi::defaultlandmarks [static, private] |
float& Taxi::dest [private] |
bool Taxi::fickle [private] |
const Gridworld* const Taxi::grid [private] |
std::vector<coord_t> Taxi::landmarks [private] |
const bool Taxi::noisy [private] |
float& Taxi::pass [private] |