scatterplot_rt_bf.py#

This script makes a scatterplot of four scenarios, where the busy fraction is plotted on the x-axis and the mean response time on the y-axis.

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_1 (str) – The name of the file that contains the first data set with the mean response times. To facilitate running the script 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”.

  • MEAN_RESPONSE_TIME_FILE_2 (str) – The name of the file that contains the second data set with the mean response times. To facilitate running the script 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”.

  • MEAN_RESPONSE_TIME_FILE_3 (str) – The name of the file that contains the third data set with the mean response times. To facilitate running the script 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”.

  • MEAN_RESPONSE_TIME_FILE_4 (str) – The name of the file that contains the fourth data set with the mean response times. To facilitate running the script 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”.

  • BUSY_FRACTION_FILE_1 (str) – The name of the file that contains the first data set with the busy fractions. To facilitate running the script 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”.

  • BUSY_FRACTION_FILE_2 (str) – The name of the file that contains the second data set with the busy fractions. To facilitate running the script 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”.

  • BUSY_FRACTION_FILE_3 (str) – TThe name of the file that contains the third data set with the busy fractions. To facilitate running the script 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”.

  • BUSY_FRACTION_FILE_4 (str) – The name of the file that contains the fourth data set with the busy fractions. To facilitate running the script 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”.

  • 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.

  • NUM_RUNS (int) – The number of runs that should be plotted.

  • 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”.

  • COLOUR_RUNS (list[str]) – The colour of each scenario. The first scenario is coloured according to the first colour, the second scenario according to the second colour, etc.

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