This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: Assignment II ISE 3424 Discrete-Event Simulation Pasupathy, Spring 2010 Assigned: Thursday, February 17 Due: Thursday, March 4 (by midnight) Note : In what follows, whenever appropriate, the steps involved in the random-variate gen- erator should be clearly outlined. So, for example, a generator for the exponential random variable with parameter is (i) Generate u U (0 , 1); (ii) Return x =- 1 ln(1- u ). 1. Use the cdf-inverse method to develop a random-variate generator for a random variable X with the probability density function (pdf) f ( x ) = braceleftbigg e 2 x ,- < x e- 2 x , < x < . 2. Use the cdf-inverse method to develop a random-variate generator for a random variable X with the cumulative distribution function (cdf) F ( x ) = , x . 5 x, < x 1 1- e- x , 1 < x < , where = log 2 . Write the generator in MATLAB. (Make sure that you use the usual format for a generator: take a seed as input and return the next seed to use along with...
View Full Document
- Spring '10