Files
histogram/examples/guide_listing_4.cpp
Hans Dembinski cba4f7796b syncing examples
2017-11-08 16:15:26 +01:00

10 lines
270 B
C++

#include <boost/histogram.hpp>
namespace bh = boost::histogram;
int main() {
// create a 1d-histogram for dice throws with eye values from 1 to 6
auto h = bh::make_static_histogram(bh::axis::integer<>(1, 7, "eyes", bh::axis::uoflow::off));
// do something with h
}