mirror of
https://github.com/boostorg/histogram.git
synced 2026-01-30 07:52:11 +00:00
12 lines
381 B
C++
12 lines
381 B
C++
#include <boost/histogram.hpp>
|
|
|
|
namespace bh = boost::histogram;
|
|
|
|
int main() {
|
|
// create a 2d-histogram in default configuration with an "age" axis
|
|
// and an "income" axis
|
|
auto h = bh::make_static_histogram(bh::axis::regular<>(20, 0, 100, "age in years"),
|
|
bh::axis::regular<>(20, 0, 100, "yearly income in $1000"));
|
|
// do something with h
|
|
}
|