#include <stocks.hh>

Public Member Functions | |
| virtual float | apply (int action) |
| void | calcStockRising () |
| virtual void | getMinMaxFeatures (std::vector< float > *minFeat, std::vector< float > *maxFeat) |
| virtual void | getMinMaxReward (float *minR, float *maxR) |
| virtual int | getNumActions () |
| void | initStocks () |
| virtual bool | isEpisodic () |
| virtual void | reset () |
| float | reward () |
| virtual const std::vector < float > & | sensation () const |
| void | setSensation (std::vector< float > s) |
| Stocks (Random &rand, bool stochastic, int nsectors, int nstocks) | |
| Stocks (Random &rand, bool stochastic) | |
| virtual bool | terminal () const |
| virtual | ~Stocks () |
Private Attributes | |
| const bool | noisy |
| const int | nsectors |
| const int | nstocks |
| int * | owners |
| int ** | rising |
| Random & | rng |
| std::vector< float > | s |
| bool | STOCK_DEBUG |
| Stocks::Stocks | ( | Random & | rand, |
| bool | stochastic, | ||
| int | nsectors, | ||
| int | nstocks | ||
| ) |
| Stocks::Stocks | ( | Random & | rand, |
| bool | stochastic | ||
| ) |
| Stocks::~Stocks | ( | ) | [virtual] |
| float Stocks::apply | ( | int | action | ) | [virtual] |
Implements Environment.
| void Stocks::calcStockRising | ( | ) |
| void Stocks::getMinMaxFeatures | ( | std::vector< float > * | minFeat, |
| std::vector< float > * | maxFeat | ||
| ) | [virtual] |
Implements Environment.
| void Stocks::getMinMaxReward | ( | float * | minR, |
| float * | maxR | ||
| ) | [virtual] |
Implements Environment.
| int Stocks::getNumActions | ( | ) | [virtual] |
Implements Environment.
| void Stocks::initStocks | ( | ) |
| virtual bool Stocks::isEpisodic | ( | ) | [inline, virtual] |
Reimplemented from Environment.
| void Stocks::reset | ( | void | ) | [virtual] |
Implements Environment.
| float Stocks::reward | ( | ) |
| const std::vector< float > & Stocks::sensation | ( | ) | const [virtual] |
Implements Environment.
| void Stocks::setSensation | ( | std::vector< float > | s | ) | [virtual] |
Reimplemented from Environment.
| bool Stocks::terminal | ( | ) | const [virtual] |
Implements Environment.
const bool Stocks::noisy [private] |
const int Stocks::nsectors [private] |
const int Stocks::nstocks [private] |
int* Stocks::owners [private] |
int** Stocks::rising [private] |
Random& Stocks::rng [private] |
bool Stocks::STOCK_DEBUG [private] |