| 22 | #include <vector> |
| 23 | |
| 24 | struct InputConfig { |
| 25 | // Total simulations (e.g. 10 simulations). |
| 26 | std::int64_t simulations; |
| 27 | // Total iterations per simulation in days (e.g. 100 days). |
| 28 | std::int64_t iterations; |
| 29 | // Stock ticker name (e.g. GOOG). |
| 30 | std::string ticker; |
| 31 | // Initial stock price (e.g. $100). |
| 32 | double price; |
| 33 | // Daily percent variance (e.g. 5%) |
| 34 | double variance; |
| 35 | // Standard deviation in variance (e.g. 5% +/- 1%). |
| 36 | double deviation; |
| 37 | // Total threads used (max available using hardware). |
| 38 | std::int64_t total_threads; |
| 39 | }; |
| 40 | |
| 41 | void print_input_config(InputConfig const& config) { |
| 42 | std::cout << std::fixed << std::setprecision(2); |
nothing calls this directly
no outgoing calls
no test coverage detected