19-Nov-2022 20:49:00 poisson_simulation_test(): MATLAB/Octave version 4.2.2 Test poisson_simulation(). poisson_fixed_events_test(): poisson_fixed_events() simulates a Poisson process until a given number of events have occurred. Simulate a Poisson process, for which, on average, LAMBDA events occur per unit time. Run until you have observed EVENT_NUM events. LAMBDA = 0.5 EVENT_NUM = 1000 Minimum wait = 0.000654034 Average wait = 1.96387 Maximum wait = 15.5024 Count Time Wait 0 0 0 1 2.85796 2.85796 2 3.47413 0.616168 3 4.14993 0.675801 4 10.0282 5.8783 5 11.4928 1.46452 .... .............. .............. 995 1956.46 0.56531 996 1957.13 0.670888 997 1958.39 1.26523 998 1961.41 3.01145 999 1962.64 1.23423 1000 1963.87 1.228 Graphics saved as "poisson_timeline.png" Graphics saved as "poisson_times.png" poisson_fixed_time_test(): poisson_fixed_time() simulates a Poisson process counting the number of events that occur during a given time. Simulate a Poisson process, for which, on average, LAMBDA events occur per unit time. Run for a total of 1000 time units. LAMBDA = 0.5 Mean number of events = 501.028 Variance = 492.963, STD = 22.2028 Graphics saved as "poisson_events.png" poisson_next_event_test(): poisson_next_event() simulates a Poisson process until a single event has occurred. Simulate a Poisson process, for which, on average, LAMBDA events occur per unit time. LAMBDA = 0.5 Event #1 occurs at time 1.15683, after waiting 1.15683 Event #2 occurs at time 3.39088, after waiting 2.23405 Event #3 occurs at time 3.53801, after waiting 0.147127 Event #4 occurs at time 3.61431, after waiting 0.0762974 Event #5 occurs at time 8.87262, after waiting 5.25831 Event #6 occurs at time 9.29007, after waiting 0.417452 Event #7 occurs at time 9.39022, after waiting 0.100145 Event #8 occurs at time 10.6395, after waiting 1.24924 poisson_simulation_test(): Normal end of execution. 19-Nov-2022 20:50:41