|
UserRangeHistogram< BinCount > Class Template Reference
|
|
Histogram where user provides bounds for linear range mapping from values to indices.
More...
#include <vigra/accumulator.hxx>
Detailed Description
template<int BinCount>
class vigra::acc::UserRangeHistogram< BinCount >
Histogram where user provides bounds for linear range mapping from values to indices.
- If BinCount != 0, the return type of the accumulator is TinyVector<double, BinCount> .
- If BinCount == 0, the return type of the accumulator is MultiArray<1, double> . BinCount can be set by calling getAccumulator<UserRangeHistogram<0> >(acc_chain).setBinCount(bincount).
- Bounds for the mapping (min/max) must be set before seeing data by calling getAccumulator<UserRangeHistogram<BinCount> >.setMinMax(min, max).
- Options can also be passed to the accumulator chain via an instance of HistogramOptions .
- Works in pass 1, operator+=() is supported (merging) if both histograms have the same data mapping.
- Outliers can be accessed via getAccumulator<...>(a).left_outliers and getAccumulator<...>(a).right_outliers.
- Note that histogram options (for all histograms in the accumulator chain) can also be set by passing an instance of HistogramOptions to the accumulator chain via acc_chain.setHistogramOptions().
The documentation for this class was generated from the following files: