Class HistogramFixture
Object
HistogramFixture
A fixture for creating predefined histograms for testing purposes.
This class provides methods to create histograms with specific patterns of bin counts, useful for testing histogram-related functionality.
-
Method Details
-
createAscending
Creates an ascending histogram from 0 to 255 (inclusive).In this histogram, each bin count is equal to its index. For example, the bin for value 5 has a count of 5, the bin for value 100 has a count of 100, etc.
- Returns:
- a Histogram with ascending bin counts
-
createDescending
Creates a descending histogram from 0 to 255 (inclusive).In this histogram, each bin count is equal to (255 - index). For example, the bin for value 0 has a count of 255, the bin for value 1 has a count of 254, etc.
- Returns:
- a Histogram with descending bin counts
-