Back to FabImage Library website
You are here: Start » Function Reference » Histogram Data Statistics » HistogramDataVariance

HistogramDataVariance
Header: | FIL.h |
---|---|
Namespace: | fil |
Computes the variance of the histogrammed numeric data.
Syntax
C++
C#
void fil::HistogramDataVariance ( const fil::Histogram& inHistogram, float& outVariance )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
![]() |
inHistogram | const Histogram& | Input histogram | |
![]() |
outVariance | float& | Variance of the histogrammed data |
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Empty histogram on input in HistogramDataVariance. |
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.
- HistogramDataStandardDeviation – Computes the standard deviation of the histogrammed numeric data.
- HistogramDataQuantile – Computes the specified quantile of the histogrammed numeric data.