This is an old revision of the document!


Calc Histogram

Description

This functor calculates a histogram from a map.

Inputs

Name Type Description
Map Map Any map

Optional Inputs

Name Type Description Default Value
Interval Width Double The width of the histogram interval. 1.0
Cumulative Bool If true, the calculated histogram is cumulative. False
Relative Bool If true, the values in the histogram are normalized by the total number of occurrences. False

Outputs

Name Type Description
Histogram Lookup Table The calculated histogram.

Notes

It also possible to calculate a histogram relative to the cumulative values. To do this, set both input flags (“Cumulative” and “Relative”).

When the “Interval Width” is different from one, the input values are remapped according to the expression below to speed up the calculation.

, where value´ is the resulting value, value is the value present in the input map and width is the width of the interval.

Because of the remapping, the lower and upper limits of the resulting histogram can be lower and greater, respectively, than the lower and upper limits of the input map.

Group

Internal Name

CalcHistogram