| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | #pragma once | ||
| 2 | |||
| 3 | #include <tuple> | ||
| 4 | #include <utility> | ||
| 5 | #include <vector> | ||
| 6 | |||
| 7 | #include "task/include/task.hpp" | ||
| 8 | |||
| 9 | namespace eremin_v_integrals_monte_carlo { | ||
| 10 | |||
| 11 | using FunctionType = double (*)(const std::vector<double> &); | ||
| 12 | |||
| 13 |
3/6✓ Branch 1 taken 48 times.
✗ Branch 2 not taken.
✗ Branch 3 not taken.
✓ Branch 4 taken 48 times.
✓ Branch 5 taken 48 times.
✗ Branch 6 not taken.
|
240 | struct MonteCarloInput { |
| 14 | std::vector<std::pair<double, double>> bounds; | ||
| 15 | int samples = 0; | ||
| 16 | FunctionType func = nullptr; | ||
| 17 | }; | ||
| 18 | |||
| 19 | using InType = MonteCarloInput; | ||
| 20 | using OutType = double; | ||
| 21 | using TestType = | ||
| 22 | std::tuple<int, std::vector<std::pair<double, double>>, int, double (*)(const std::vector<double> &), double>; | ||
| 23 | using BaseTask = ppc::task::Task<InType, OutType>; | ||
| 24 | |||
| 25 | } // namespace eremin_v_integrals_monte_carlo | ||
| 26 |