Creates a Histogram for measured values All value beneath min value are grouped in the first bin All values above max_value are grouped in the last bin.
More...
#include <ModelBaseAnalysis.hpp>
Creates a Histogram for measured values All value beneath min value are grouped in the first bin All values above max_value are grouped in the last bin.
- Author
- Author
- Patrick Merz Paranhos
- Date
- Date
- 21/10/2011
Contact: patri.nosp@m.ck.m.nosp@m.erz_p.nosp@m.aran.nosp@m.hos@d.nosp@m.fki..nosp@m.de
| Histogram::Histogram |
( |
int |
numb_bins, |
|
|
double |
min_value, |
|
|
double |
max_value |
|
) |
| |
The histogram goes from min_value to max_value all values above max_value are grouped in a single bin all values beneath min_value are grouped in a single bin So there are (numb_bins - 2) bins between max_value and min_value The bin size is (max_value - min_value) / num_bins-2
- Parameters
-
| numb_bins | - number of bins in the histogram |
| min_value | - the minimal value of the histogram |
| max_value | - the minimal value of the histogram |
********* HISTOGRAM **************** ********* HISTOGRAM **************** ********* HISTOGRAM ****************
| void Histogram::addValue |
( |
double |
value | ) |
|
- Parameters
-
| value | - a value to be added to the histogram |
| void Histogram::clearHistogram |
( |
| ) |
|
| std::vector< double > Histogram::getHistogram |
( |
| ) |
|
- Returns
- a normalized copy of the histogram
| double terrain_estimator::Histogram::getNumberPoints |
( |
| ) |
|
|
inline |
- Returns
- the number of points added to the histogram
The documentation for this class was generated from the following files: