>> poisson_fixed_time_test 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.02 Variance = 501.435, STD = 22.3927 Plot file saved as "poisson_events.png" >> diary >> poisson_simulation_test 24-Jan-2019 09:34:32 POISSON_SIMULATION_TEST MATLAB version. 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.00285543 Average wait = 2.05542 Maximum wait = 14.324 Count Time Wait 0 0 0 1 0.190343 0.190343 2 3.43298 3.24264 3 5.55878 2.1258 4 14.374 8.81517 5 16.1454 1.77141 .... .............. .............. 995 2041.85 0.0194807 996 2045.18 3.33169 997 2048.7 3.52096 998 2054.23 5.53303 999 2054.47 0.2351 1000 2055.42 0.95385 Plot file saved as "poisson_timeline.png" Plot file 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 = 500.877 Variance = 501.745, STD = 22.3997 Plot file 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 5.4531, after waiting 5.4531 Event #2 occurs at time 11.9174, after waiting 6.46425 POISSON_SIMULATION_TEST Normal end of execution. 24-Jan-2019 09:34:36 >>