ESP32 MQTT IoT Communication
Loading...
Searching...
No Matches
random_walk::RandomWalk Class Reference

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.
 

Detailed Description

A class containing the logic and data for a Random Walk.

Constructor & Destructor Documentation

◆ RandomWalk()

random_walk::RandomWalk::RandomWalk ( double  _price)

Constructor for a random Walk object with a starting point.

Parameters
_priceStarting Price

Member Function Documentation

◆ get_price()

double random_walk::RandomWalk::get_price ( ) const

Gets the internal price.

Returns
double

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