mirror of
https://github.com/boostorg/histogram.git
synced 2026-01-30 07:52:11 +00:00
11 lines
282 B
C++
11 lines
282 B
C++
#include <boost/histogram.hpp>
|
|
|
|
namespace bh = boost::histogram;
|
|
|
|
int main() {
|
|
// create a 1d-histogram in default configuration which
|
|
// covers the real line from -1 to 1 in 100 bins
|
|
auto h = bh::make_static_histogram(bh::axis::regular<>(100, -1, 1));
|
|
// do something with h
|
|
}
|