Back to Adaptive Vision Library website
You are here: Start » Function Reference » Histogram Data Statistics » HistogramDataVariance
HistogramDataVariance
Computes the variance of the histogrammed numeric data.
| Header: | AVL.h |
|---|
Syntax
C++
C#
void avl::HistogramDataVariance ( const avl::Histogram& inHistogram, float& outVariance )
Parameters
| Name | Type | Default | Description | |
|---|---|---|---|---|
![]() |
inHistogram | const Histogram& | Input histogram | |
![]() |
outVariance | float& | Variance of the histogrammed data |
Errors
| Error type | Description |
|---|---|
| DomainError | Input histogram contains negative bins in HistogramDataVariance. |
| DomainError | The histogrammed data is empty in HistogramDataVariance. |
See Also
- HistogramDataAverage – Computes the average of the histogrammed numeric data.
- HistogramDataMedian – Computes the median of the histogrammed numeric data.
- HistogramDataQuantile – Computes the specified quantile of the histogrammed numeric data.
- HistogramDataStandardDeviation – Computes the standard deviation of the histogrammed numeric data.


