mirror of
https://github.com/boostorg/histogram.git
synced 2026-02-22 15:32:12 +00:00
10 lines
275 B
C++
10 lines
275 B
C++
#include <boost/histogram.hpp>
|
|
|
|
namespace bh = boost::histogram;
|
|
|
|
int main() {
|
|
// create a 1d-histogram for dice throws, eyes are always between 1 and 6
|
|
auto h = bh::make_static_histogram(bh::axis::integer<>(1, 6, "eyes", bh::axis::uoflow::off));
|
|
// do something with h
|
|
}
|