evitaDB - Fast e-commerce database
logo
page-background

Histogram

The article explains the Histogram class and its components, such as data arrays and bin edges, which are used for frequency distribution visualization.

The data transfer record containing information about the interval attribute and its histogram. The histogram can be rendered as a column graph, where the first column is computed as:

first threshold (inclusive) - second threshold (exclusive) ... last - 1 threshold (inclusive) - maxValue (inclusive)
  • BigDecimal maxValue: maximal value of the attribute present
  • array of HistogramThreshold: returns histogram buckets with a count of entities in them. The array is then computed for a specified maximum number of buckets (usually derived from the visual space dedicated to histogram in the UI)

Histogram threshold

  • int index: index o the bucket starting with zero (order of the bucket in the histogram)
  • BigDecimal threshold: contains threshold (left bound - inclusive) of the bucket
  • int occurrences: count of entities in this bucket

Author: Ing. Jan Novotný

Date updated: 15.12.2022

Documentation Source