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 51 of file feature_histogram.h.
pcl::FeatureHistogram::FeatureHistogram |
( |
const 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. |
virtual pcl::FeatureHistogram::~FeatureHistogram |
( |
| ) |
|
|
virtual |
void pcl::FeatureHistogram::addValue |
( |
float |
value | ) |
|
Increase a bin, that corresponds the value.
- Parameters
-
float pcl::FeatureHistogram::getMeanValue |
( |
| ) |
|
Get value, corresponds to the greatest bin.
- Returns
- mean value of the greatest bin.
size_t pcl::FeatureHistogram::getNumberOfBins |
( |
| ) |
const |
Get number of bins in the histogram.
- Returns
- number of bins in the histogram.
size_t pcl::FeatureHistogram::getNumberOfElements |
( |
| ) |
const |
Get the number of elements was added to the histogram.
- Returns
- number of elements in the histogram.
float pcl::FeatureHistogram::getThresholdMax |
( |
| ) |
const |
Get the upper threshold.
- Returns
- upper threshold.
float pcl::FeatureHistogram::getThresholdMin |
( |
| ) |
const |
Get the lower threshold.
- Returns
- lower threshold.
float pcl::FeatureHistogram::getVariance |
( |
float |
mean | ) |
|
Get variance of the value.
- Returns
- variance of the greatest bin.
std::vector<unsigned> pcl::FeatureHistogram::histogram_ |
|
protected |
size_t pcl::FeatureHistogram::number_of_bins_ |
|
protected |
size_t pcl::FeatureHistogram::number_of_elements_ |
|
protected |
float pcl::FeatureHistogram::step_ |
|
protected |
float pcl::FeatureHistogram::threshold_max_ |
|
protected |
float pcl::FeatureHistogram::threshold_min_ |
|
protected |
The documentation for this class was generated from the following file: