mirror of
https://github.com/boostorg/histogram.git
synced 2026-01-28 07:12:15 +00:00
14 lines
362 B
C++
14 lines
362 B
C++
#include <boost/histogram.hpp>
|
|
#include <vector>
|
|
|
|
namespace bh = boost::histogram;
|
|
|
|
int main() {
|
|
using dhist = decltype(bh::make_dynamic_histogram());
|
|
auto v = std::vector<dhist::axis_type>();
|
|
v.push_back(bh::axis::regular<>(100, -1, 1));
|
|
v.push_back(bh::axis::integer(1, 6));
|
|
auto h = dhist(v.begin(), v.end());
|
|
// do something with h
|
|
}
|