Histogram Generator

Undraw File Manager

Histogram Generator

About

A histogram generator is a column data generator that generates a value according to its chance factor.

This generator is used to generate data that follows a probability distribution where the factor is the probability for the value.

Properties

Buckets

This generator has only one property that defines the histogram namely, the buckets.

A bucket is a value and its chance factor

Example if you want to simulate that people may work the week-end once every 10 weeks, you will define this bucket list

Columns:
  - name: bucket_map
    type: varchar
    DataGenerator:
      type: histogram
      Buckets:
        Monday: 10
        Tuesday: 10
        Wednesday: 10
        Thursday: 10
        Friday: 10
        Saturday: 1
        Sunday: 1

Data Type

The below data type are supported:

  • Integer
  • Float / Double / Real
  • Numeric / Decimal
  • Date
  • Timestamp
  • Time
  • Char / Varchar



Related HowTo
Undraw File Manager
How to generate a normal distribution with an histogram generator

This how-to shows you how to generate data that follows a normal distribution with the column histogram generator
Undraw File Manager
How to get data from a list of values at random

This how-to shows you how to generate data from a list of values at random data with the column histogram generator.

Task Runner