The rogram generates simulated samples from a giving distribution by using samples generated from a Standard Uniform Distribution (Random Number Generator). The type of distribution and the parameters are given as command line arguments.
<number-of-samples>
<distribution>
<parameters>
An example of a call would be:
5 bernoulli 0.3
Here we want to generate 5 separate samples of bernoulli trials where each trial has a probability of 0.3 of succeeding
- bernoulli
<p>
- binomial
<n>
<p>
- geometric
<p>
- neg-binomial
<k>
<p>
- poisson
<λ>
- arb-discrete
<p0>
<p1>
<p2>
…<pn>
- uniform
<a>
<b>
- exponential
<λ>
- gamma
<α>
<λ>
- normal
<μ>
<σ>
This code was submitted as part of CSE 5301: Data Analysis and Modelling techniques course assignment at The University of Texas at Arlington to Prof. VamsiKrishna GopiKrishna (http://crystal.uta.edu/~gopikrishnav/)