8 #include <lexis/render/detail/histogram.h> 9 #include <vmmlib/types.hpp> 30 LEXIS_API Histogram&
operator+=(
const Histogram& histogram );
33 LEXIS_API
bool operator==(
const Histogram& rhs )
const;
36 LEXIS_API
bool operator!=(
const Histogram& rhs )
const;
54 LEXIS_API uint64_t
getSum()
const;
57 LEXIS_API vmml::Vector2f
getRange()
const;
66 LEXIS_API
double getRatio(
size_t index )
const;
69 LEXIS_API
void resize(
size_t newSize );
78 LEXIS_API std::vector< vmml::Vector2f >
79 sampleCurve(
bool logScale,
const vmml::Vector2f& range )
const;
Defines export visibility macros for library Lexis.
bool operator==(const Histogram &rhs) const
std::vector< vmml::Vector2f > sampleCurve(bool logScale, const vmml::Vector2f &range) const
Linear sampling of the histogram.
double getRatio(size_t index) const
Computes the ratio of the value at a given index.
void resize(size_t newSize)
Sets the number of bins to newSize and clears the histogram.
size_t getMaxIndex() const
Histogram()
The minimum value is set to -inf and maximum value is set to -inf.
vmml::Vector2f getRange() const
size_t getMinIndex() const
bool operator!=(const Histogram &rhs) const
Histogram & operator+=(const Histogram &histogram)
Computes the addition of two histograms and modifies the object.