input_output_functions.simulation_statistics#

input_output_functions.simulation_statistics(df_patient, df_ambulance, start_time_simulation: datetime, end_time_simulation: datetime, nr_times_no_fast_no_regular_available: int, SIMULATION_PARAMETERS: dict[str, Any]) None#

Prints some simulation statistics.

Parameters:
  • df_patient (pandas.DataFrame) – A dataframe with the patient data where each row represents a patient. At least columns “response_time”, “waiting_time_before_assigned” and “ecdf_rt” are necessary. See the output data section on the ELASPY website for explanations.

  • df_ambulance (Pandas.DataFrame) – A dataframe with the ambulance data where each row represents an ambulance event. At least columns “charging_type”, “charging_success”, “charging_interrupted”, “charging_time” and “waiting_time” are necessary. See the output data section on the ELASPY website for explanations.

  • start_time_simulation (datetime.datetime) – The start time of the simulation run.

  • end_time_simulation (datetime.datetime) – The end time of the simulation run.

  • nr_times_no_fast_no_regular_available (int) – The number of times no fast and no regular chargers were available when an ambulance wanted to charge during the simulation run.

  • SIMULATION_PARAMETERS (dict[str, Any]) – The simulation parameters. The parameter ENGINE_TYPE is at least necessary. See main.py for parameter explanations.