#include <MRMesh/MRHistogram.h>
Public Member Functions | |
| Histogram ()=default | |
| Histogram (float min, float max, size_t size) | |
| Initialize histogram with minimum and maximum values, and number of bins. | |
| void | addSample (float sample, size_t count=1) |
| Adds sample to corresponding bin. | |
| void | addHistogram (const Histogram &hist) |
| Adds bins of input hist to this. | |
| const std::vector< size_t > & | getBins () const |
| Gets bins. | |
| float | getMin () const |
| Gets minimum value of histogram. | |
| float | getMax () const |
| Gets maximum value of histogram. | |
| size_t | getBinId (float sample) const |
| Gets id of bin that inherits sample. | |
| std::pair< float, float > | getBinMinMax (size_t binId) const |
| Gets minimum and maximum of diapason inherited by bin. | |
| size_t | heapBytes () const |
| returns the amount of memory this object occupies on heap | |
Simple class for calculating histogram