Type for histograms for computing mean and variance of some floats.
More...
#include <pcl/common/feature_histogram.h>
Type for histograms for computing mean and variance of some floats.
- Author
- Timur Ibadov (ibado.nosp@m.v.ti.nosp@m.mur@g.nosp@m.mail.nosp@m..com)
Definition at line 50 of file feature_histogram.h.
◆ FeatureHistogram()
pcl::FeatureHistogram::FeatureHistogram |
( |
const std::size_t |
number_of_bins, |
|
|
const float |
min, |
|
|
const float |
max |
|
) |
| |
Public constructor.
- Parameters
-
[in] | number_of_bins | number of bins in the histogram. |
[in] | min | lower threshold. |
[in] | max | upper threshold. |
◆ ~FeatureHistogram()
virtual pcl::FeatureHistogram::~FeatureHistogram |
( |
| ) |
|
|
virtual |
◆ addValue()
void pcl::FeatureHistogram::addValue |
( |
float |
value | ) |
|
Increase a bin, that corresponds the value.
- Parameters
-
◆ getMeanValue()
float pcl::FeatureHistogram::getMeanValue |
( |
| ) |
|
Get value, corresponds to the greatest bin.
- Returns
- mean value of the greatest bin.
◆ getNumberOfBins()
std::size_t pcl::FeatureHistogram::getNumberOfBins |
( |
| ) |
const |
Get number of bins in the histogram.
- Returns
- number of bins in the histogram.
◆ getNumberOfElements()
std::size_t pcl::FeatureHistogram::getNumberOfElements |
( |
| ) |
const |
Get the number of elements was added to the histogram.
- Returns
- number of elements in the histogram.
◆ getThresholdMax()
float pcl::FeatureHistogram::getThresholdMax |
( |
| ) |
const |
Get the upper threshold.
- Returns
- upper threshold.
◆ getThresholdMin()
float pcl::FeatureHistogram::getThresholdMin |
( |
| ) |
const |
Get the lower threshold.
- Returns
- lower threshold.
◆ getVariance()
float pcl::FeatureHistogram::getVariance |
( |
float |
mean | ) |
|
Get variance of the value.
- Returns
- variance of the greatest bin.
◆ histogram_
std::vector<unsigned> pcl::FeatureHistogram::histogram_ |
|
protected |
◆ number_of_bins_
std::size_t pcl::FeatureHistogram::number_of_bins_ |
|
protected |
◆ number_of_elements_
std::size_t pcl::FeatureHistogram::number_of_elements_ |
|
protected |
◆ step_
float pcl::FeatureHistogram::step_ |
|
protected |
◆ threshold_max_
float pcl::FeatureHistogram::threshold_max_ |
|
protected |
◆ threshold_min_
float pcl::FeatureHistogram::threshold_min_ |
|
protected |
The documentation for this class was generated from the following file: