Skip to content

Poisson Distribution

Hayley Howard edited this page Mar 15, 2018 · 16 revisions

The Poisson distribution is one of the distribution functions implemented for the generator. When used inside of the Generator class, the Poisson class will generate a numpy array. This array contains a set of data that includes the timestamps within the time period specified by the user (e.g. 15-minute incremented timestamps starting at 12:00am on Monday, March 12 and running for 14 days), and the array of generated byte count values.

Required Parameters:

  • Business_Hours
  • Work_Hour_Start
  • Days
  • Start_Date
  • Low_Max
  • High_Max

Source code location:

Generator/resources/poisson.py

Sample Code

my_config = GeneratorConfig()

my_config.set_func_type = "poisson"

my_generator = Generator(my_config)

Methods

  • get_array(int maximum, int increments): internal function used to generate Poisson arrays.
  • generate(): returns a Numpy array with timestamps and byte count columns. called automatically by the Generator.
Clone this wiki locally