# Generate Rate Based Distributions

This module generates data based on Poisson, gamma, exponential or geometric distribution

This experiment generates data using a user selected distribution such as Poisson, exponential, gamma, and geometric. For example, user may want to do a montecarlo simulation over the service experience model using Poisson distribution for arrival pattern and this module can help generate this data
### Module Configuration ###
This module expects user to select a distribution and provide
- Rate - This is average rate expected for Poisson, exponential, gamma, and geometric.
- Shape - This is used only for gamma distribution as a shape attribute
- Min - This is used only for exponential and gamma for creating data with values greater than this value
- Max - This is used for exponential and gamma for creating data with values less than this value
- Rows - This is used as input on how much data is created and shape the dataframe
- Columns - This is used as input on how much data is created and shape the dataframe
- Type of distribution - This is where user provides what type of distribution should be used for creating dataset
- Seed - This is used as a seed for randomization of the data
![](http://neerajkh.blob.core.windows.net/images/RateModuleConfigCapture.PNG)
### Sample Output Dataset ###
The figure below shows the dataset generated by the algorithm along with the distribution of the generated data
![](http://neerajkh.blob.core.windows.net/images/RatebasedDataCapture.PNG)
![](http://neerajkh.blob.core.windows.net/images/RateBasedPlotCapture.PNG)
### Source Code###
The source code for this file is located here - [https://gist.github.com/nk773/534e17588e2013fb98fde7a26d42eb72](https://gist.github.com/nk773/534e17588e2013fb98fde7a26d42eb72)