21 MRMESH_API
void addSample(
float sample,
size_t count = 1 );
26 MRMESH_API
const std::vector<size_t>&
getBins()
const;
34 MRMESH_API
size_t getBinId(
float sample )
const;
36 MRMESH_API std::pair<float, float>
getBinMinMax(
size_t binId )
const;
42 std::vector<size_t> bins_;
Definition MRHistogram.h:13
size_t heapBytes(const BitSet &bs)
returns the amount of memory given BitSet occupies on heap
Definition MRBitSet.h:313
MRMESH_API void addSample(float sample, size_t count=1)
Adds sample to corresponding bin.
ImVec2 size(const ViewportRectangle &rect)
Definition MRViewport.h:32
size_t heapBytes() const
returns the amount of memory this object occupies on heap
Definition MRHistogram.h:39
MRMESH_API float getMin() const
Gets minimum value of histogram.
MRMESH_API const std::vector< size_t > & getBins() const
Gets bins.
MRMESH_API std::pair< float, float > getBinMinMax(size_t binId) const
Gets minimum and maximum of diapason inherited by bin.
MRMESH_API float getMax() const
Gets maximum value of histogram.
MRMESH_API Histogram(float min, float max, size_t size)
Initialize histogram with minimum and maximum values, and number of bins.
MRMESH_API size_t getBinId(float sample) const
Gets id of bin that inherits sample.
MRMESH_API void addHistogram(const Histogram &hist)
Adds bins of input hist to this.
only for bindings generation
Definition MRCameraOrientationPlugin.h:8