| 7 | namespace bh = boost::histogram; |
| 8 | |
| 9 | int main() { |
| 10 | namespace axis = boost::histogram::axis; |
| 11 | |
| 12 | enum { A, B, C }; |
| 13 | |
| 14 | auto h = bh::make_static_histogram( |
| 15 | axis::regular<>(2, -1, 1, "regular1", axis::uoflow_type::off), |
| 16 | axis::regular<axis::transform::log>(2, 1, 10, "regular2"), |
| 17 | axis::circular<>(4, 0.1, 1.0, "polar"), |
| 18 | axis::variable<>({-1, 0, 1}, "variable", axis::uoflow_type::off), |
| 19 | axis::category<>({A, B, C}, "category"), |
| 20 | axis::integer<>(-1, 1, "integer", axis::uoflow_type::off)); |
| 21 | |
| 22 | std::cout << h << std::endl; |
| 23 | |
| 24 | /* prints: |
| 25 | |
| 26 | histogram( |
| 27 | regular(2, -1, 1, label='regular1', uoflow=False), |
| 28 | regular_log(2, 1, 10, label='regular2'), |
| 29 | circular(4, phase=0.1, perimeter=1, label='polar'), |
| 30 | variable(-1, 0, 1, label='variable', uoflow=False), |
| 31 | category(0, 1, 2, label='category'), |
| 32 | integer(-1, 1, label='integer', uoflow=False), |
| 33 | ) |
| 34 | |
| 35 | */ |
| 36 | } |
| 37 | |
| 38 | //] |
nothing calls this directly
no test coverage detected