| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | #pragma once | ||
| 2 | |||
| 3 | #include <functional> | ||
| 4 | #include <string> | ||
| 5 | #include <tuple> | ||
| 6 | #include <vector> | ||
| 7 | |||
| 8 | #include "task/include/task.hpp" | ||
| 9 | |||
| 10 | namespace dorofeev_i_monte_carlo_integration_processes { | ||
| 11 | |||
| 12 |
2/2✓ Branch 0 taken 8 times.
✓ Branch 1 taken 8 times.
|
16 | struct InputData { |
| 13 | std::function<double(const std::vector<double> &)> func; // f(x) | ||
| 14 | std::vector<double> a; // lower bounds | ||
| 15 | std::vector<double> b; // upper bounds | ||
| 16 | int samples = 0; // number of samples | ||
| 17 | }; | ||
| 18 | |||
| 19 | using InType = InputData; | ||
| 20 | using OutType = double; | ||
| 21 | |||
| 22 | using TestType = std::tuple<int, std::string>; // for testing purposes | ||
| 23 | using BaseTask = ppc::task::Task<InType, OutType>; | ||
| 24 | |||
| 25 | } // namespace dorofeev_i_monte_carlo_integration_processes | ||
| 26 |