Skip to content

Commit

Permalink
fix: test commit
Browse files Browse the repository at this point in the history
  • Loading branch information
robertik10 committed Jan 12, 2024
1 parent a33df32 commit 177da72
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions code/perception/src/00_Experiments/kalman_datasets/viz.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
file_path_heading = "./heading_error/" + file_name


# region PLOTS
def plot_best_tuned_file_by_type(type='x', error_type='MSE', check_type='IQR'):
"""
Berechnet den Error Typ für x oder y Daten.
Expand Down Expand Up @@ -685,8 +686,10 @@ def plot_csv_heading2(file_path):

# Set the x-axis label to 'Time'
plt.xlabel('Time in seconds')
# endregion PLOTS


# region CALCUATIONS
def calculate_mae(ideal, estimated):
"""
Calculates the Mean Absolute Error (MAE) for position data.
Expand Down Expand Up @@ -840,6 +843,7 @@ def calculate_RMSPE(ideal, estimated):
rmspe = np.sqrt(np.mean(errors**2))

return rmspe, errors
# endregion CALCUATIONS


# plot_csv(file_path_x, 'x')
Expand Down

0 comments on commit 177da72

Please sign in to comment.