Type for histograms for computing mean and variance of some floats.
float threshold_max_
Max threshold.
float threshold_min_
Min threshold.
virtual ~FeatureHistogram()
Public destructor.
std::size_t number_of_elements_
Number of values was added to the histogram.
float getMeanValue()
Get value, corresponds to the greatest bin.
std::size_t getNumberOfElements() const
Get the number of elements was added to the histogram.
std::size_t number_of_bins_
Number of bins.
float getVariance(float mean)
Get variance of the value.
float getThresholdMin() const
Get the lower threshold.
float step_
"Width" of a bin.
void addValue(float value)
Increase a bin, that corresponds the value.
float getThresholdMax() const
Get the upper threshold.
std::size_t getNumberOfBins() const
Get number of bins in the histogram.
std::vector< unsigned > histogram_
Vector, that contain the histogram.
FeatureHistogram(const std::size_t number_of_bins, const float min, const float max)
Public constructor.
Defines all the PCL and non-PCL macros used.