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

HistogramDataAverage
Header: | FIL.h |
---|---|
Namespace: | fil |
Computes the average of the histogrammed numeric data.
Syntax
C++
C#
void fil::HistogramDataAverage ( const fil::Histogram& inHistogram, float& outAverage )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
![]() |
inHistogram | const Histogram& | Input histogram | |
![]() |
outAverage | float& | Average of the histogrammed data |
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Empty histogram on input in HistogramDataAverage. |
DomainError | Input histogram contains negative bins in HistogramDataAverage. |
DomainError | The histogrammed data is empty in HistogramDataAverage. |