MCPcopy Create free account
hub / github.com/GoogleCloudPlatform/cpp-samples / InputConfig

Class InputConfig

batch/parallel/application/src/finsim.cc:24–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22#include <vector>
23
24struct 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
41void print_input_config(InputConfig const& config) {
42 std::cout << std::fixed << std::setprecision(2);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected