4Code to add outliers to a track in a file used for testing
11with open(
"map_250.txt",
"r")
as file:
15 x, y, c = line.split()
16 x_values.append(float(x))
17 y_values.append(float(y))
21f = open(
"map_250_out10.txt",
"w")
24for i
in range(len(x_values)):
27 str(x_values[i] + 3) +
" " + str(y_values[i]) +
" " + c_values[i] +
"\n"
30 f.write(str(x_values[i]) +
" " + str(y_values[i]) +
" " + c_values[i] +
"\n")