Tutorial Acceleration Noise

 Acceleration Noise is the standard deviation of the acceleration of a specific link. Acceleration noise is calculated from the Time Step Data output file to match the Acceleration Noise in given in the Link Performance Measures output file. This tutorial is using R, if you are running this tutorial with R please make sure you are using RStudio 3.4 or newer. The zip file can be found at [insert GitHub link]. To properly run this script the Time Step Data file and Link Results csv files with need be taken from the location of the simulation output to ...\accelNoise_v1.x\inputs\timeStepData and ...\accelNoise_v1.x\inputs\linkResultsData, respectively. Before running this script: • Customization of link outputs: Lines 44-45 – Line 44 allows you to choose a custom list of links or use all links present. – Line 45 allows you to manually list the links that will be evaluated. • Verify warm up times and the simulation duration: Lines 48-49 – Line 48 is for the manual input of warm up time – Line 49 is for the manual input of simulation duration Running the script The R script can be run as chunks of script by placing your cursor at the end of the desired chunk and pressing "Ctrl+Alt+T" (for Windows). The R script can also be run by selecting lines and pressing run. It is recommended to run the code in the order it appears. Lines 31-50 are the inputs which are used later in the script. Lines 33-37 describe where SwashSim output files should be located as described above. Lines 38-41 are the locations of the output files from this script. Lines 42-40 are described above. Lines 51-79 prepare RStudio to run properly. Lines 51-61 will install the packages needed to run the script. Lines 61-64 call packages to be used, specifically "rstudioapi" and "collections". Please note, that [blank]. Lines 71-79 set the working directory to the where the R script is located, allowing for flexibility in the location of the accelNoise_v1.x file. Lines 80-99 import the time-step data. Line 82 is for user convenience and prints the start time of each iteration. Lines 84-85 creates a value that stores the names of the files in the timeStepData folder. Line 92-96 creates a dataframe of all csv files in the timeStepData folder. Line 98 is for user convenience and prints the end time of the importation. Lines 100-126 further define the list of links to be analyzed. Line 103 identifies all links with vehicle data. Line 106 reads the link results into a dataframe from the combined csv file. Lines 109-111 removes the entry and exit links from the linkResults data frame. Lines 114-125 are for the usage of a custom link list. This will modify the linkResults dataframe to only included specified links as was specified in Lines 44-45. Lines 127-136 sets up a data structure (dictionary) that allows for link data to be compared with warm-up data and other link data. Lines 137-172