|
ESP32 MQTT IoT Communication
|
A class containing the logic and data for a Random Walk. More...
#include <random_walk.hh>
Public Member Functions | |
| RandomWalk () | |
| Constructor For the random Walk. | |
| RandomWalk (double _price) | |
| Constructor for a random Walk object with a starting point. | |
| ~RandomWalk () | |
| Destructor. | |
| double | get_price () const |
| Gets the internal price. | |
| void | iteration () |
| Iterates forward one step. | |
A class containing the logic and data for a Random Walk.
| random_walk::RandomWalk::RandomWalk | ( | double | _price | ) |
Constructor for a random Walk object with a starting point.
| _price | Starting Price |
| double random_walk::RandomWalk::get_price | ( | ) | const |
Gets the internal price.