CS 1538 Fall 2009 Handouts

 

sim1.xls – Spreadsheet demonstrating Example 2.1 in Banks text

  

SimEvent.java ArrivalEvent.java CompletionEvent.java – Simple definitions of events designed to allow object-oriented access

 

GrocerySim.java – Java implementation of Example 2.5 in Banks text.  This is overimplemented, but it shows how a more complicated simulation might be approached.

 

sim2.xls – Spreadsheet for News Dealer’s example

 

Circle.java – Simple Monte Carlo Example

MontyMonte.java – Monte Carlo Simulation to solve “Let’s Make a Deal” problem

Monte.java – Integration through Monte Carlo simulation

 

SimEventFloat.java ArrivalEventFloat.java CompletionEventFloat.java – Events for floating point values

GrocerySimB.java – Grocery example to show some long-run values

 

Ex621.java – Program to solve Exercise 6.21 in text

JDKRandom.java – Java's Random number generator, with comments

TestRandom.java – Showing that JDKs random number generator satisfies the definition for a mixed LCG with a period of 2b

 

RandTest1.java Rand1.java CDF_Normal.java – Testing a couple LCGs for uniformity using Chi-Square

 

RandDist.java Variates.java – Showing some random variates

 

panera.txt – Raw data of Panera arrivals

panera.xls – Processed data for distribution testing

CountData.java – Java program to get interarrival times

 

Covariance.xls – Demo of checking covariance and autocorrelation of input distribution

 

GrocerySimC.java – Grocery sim to do multiple runs

ttest.xls – Reducing beta error through increased number of runs

 

confidence.xls – Determining confidence intervals

 

quantile.xls – Calculating an interval on a quantile / percentile

 

GrocerySimD.java – Using batches to determine run length / starting point for long-run simulations

 

compare.xls – Comparing results from 2 systems (using both correlated and independent data)

 

best.xls – Finding the best in a system