39 std::vector<size_t> bins_;
#define MRMESH_API
Definition MRMesh/MRMeshFwd.h:46
Definition MRHistogram.h:10
MRMESH_API void addSample(float sample, size_t count=1)
Adds sample to corresponding bin.
size_t heapBytes() const
returns the amount of memory this object occupies on heap
Definition MRHistogram.h:36
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.
size_t heapBytes(const std::vector< T > &vec)
returns the amount of memory given vector occupies on heap
Definition MRHeapBytes.h:15
Definition MRCameraOrientationPlugin.h:8
ImVec2 size(const ViewportRectangle &rect)
Definition MRViewport.h:32