jitter_plots_scenarios.py#

This script makes two jitter plots for all scenarios; one for the mean and one for the 95% empirical quantile of the response times.

Parameters:
  • DATA_DIRECTORY (str) – The folder, relative to the ROOT_DIRECTORY (automatically determined), where the input data is located.

  • RESULTS_DIRECTORY (str) – The folder, relative to the ROOT_DIRECTORY (automatically determined), where the output files should be saved.

  • SCENARIO_NAMES (list[str]) – A list with the scenario names that should be considered.

  • MEAN_RESPONSE_TIME_FILE (str) – The name of the file that contains the data set with the mean response times. If the script is run with multiple lambda values (i.e., arrival rates), note that the files should have a “Li” suffix, where “i” stands for the lambda rate “1/i”. To facilitate reading multiple scenarios, the scenario name is automatically added by the script according to the order and value in SCENARIO_NAMES in a for-loop.

  • EMP_Q_FILE (str) – The name of the file that contains the data set with the 95% empirical quantile of the response times. If the script is run with multiple lambda values (i.e., arrival rates), note that the files should have a “Li” suffix, where “i” stands for the lambda rate “1/i”. To facilitate reading multiple scenarios, the scenario name is automatically added by the script according to the order and value in SCENARIO_NAMES in a for-loop.

  • PLOT_NAME (str) – The name of the plot if it is saved.

  • RUN_PARAMETERS_FILE_NAME (str) – The name of the text file with the script parameters if SAVE_PLOT=True.

  • LAMBDA_SCENARIOS_COUNTER (list[int] | None) – A list with the lambda values without “1/”. Thus, if a lambda value of 1/4 is used, provide “4”. If it is None, then a single lambda value (i.e., arrival rate) is used.

  • JITTER_SPREAD (float) – The spread of the jitter plot. A higher value means more spread.

  • SEED_VALUE (int) – The seed value.

  • SAVE_PLOT (bool) – Whether the plot should be saved or not.