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

HistogramDataMedian
Header: | FIL.h |
---|---|
Namespace: | fil |
Module: | FoundationBasic |
Computes the median of the histogrammed numeric data.
Syntax
C++
C#
void fil::HistogramDataMedian ( const fil::Histogram& inHistogram, float& outMedian )
Parameters
Name | Type | Default | Description | |
---|---|---|---|---|
![]() |
inHistogram | const Histogram& | Input histogram | |
![]() |
outMedian | float& | Median of the histogrammed data |
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Empty histogram on input in HistogramDataMedian. |
DomainError | Input histogram contains negative bins or its data is empty in HistogramDataMedian. |
See Also
- HistogramDataAverage – Computes the average 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.
- HistogramDataVariance – Computes the variance of the histogrammed numeric data.