Skip to content

Weibull Distribution

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

The Weibull distribution is one of the distribution functions implemented for the generator. When used inside of the Generator class, the Weibull 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
  • Scale
  • Shape
  • Start_Date
  • Low_Max
  • High_Max

The source code for the Weibull Distribution can be found here:

Generator/resources/weibull.py

Sample Code

my_config = GeneratorConfig()

my_config.set_func_type = "weibull"

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