C++Guns – RoboBlog

03.02.2019

C++ Guns: ACPL proudly presents: Histogram1D

Filed under: Allgemein — Tags: — Thomas @ 21:02

See also
ACPL: Histogram2D
ACPL: BinaryHeap

Create 1D Histogram in a fast and intuitive way.
Define an Axis, Range, Title, get stochastic moments. Enjoy the ASCII art output.
See source code and more code examples at ACPL Histogram 1D

std::vector<double> tempValues;
HistogramAxis axis("temp [degree]", FixBinSize{50}, makeDataIntervalClosed(tempValues));
Histogram hist = Histogram("City temperature", axis, tempValues);
cout << hist;
City temperature
Axis: temp [degree]
Number of bins: 50 bin width 0.242
Under/ Overflow count: 0 0
min max avg var std
Histogram -4.5 7.6 3.62 7.27079 2.69644
Data -4.5 7.6 3.62 7.27079 2.69644

No Comments

No comments yet.

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.

Powered by WordPress