Skip to content

Commit

Permalink
Corrections et ajout des graph
Browse files Browse the repository at this point in the history
  • Loading branch information
Aviel20002 committed Jan 19, 2024
1 parent 06236ee commit 6db01ab
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Binary file added res/comp_normal_law_Y_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/comp_normal_law_Y_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/comp_normal_law_Y_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 5 additions & 5 deletions src/feature_analyse_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@ def plot_compairaison():
mu_1, std_1 = parameters[y][1]
mu_2, std_2 = parameters[y][2]
mu_3, std_3 = parameters[y][3]
x_plot_0 = np.linspace(mu_0-4*std_0, mu_0+4*std_0, 1000)
x_plot_1 = np.linspace(mu_0-4*std_1, mu_1+4*std_1, 1000)
x_plot_2 = np.linspace(mu_2-4*std_2, mu_2+4*std_2, 1000)
x_plot_3 = np.linspace(mu_3-4*std_3, mu_3+4*std_3, 1000)
x_plot_0 = np.linspace(mu_0-10, mu_0+10, 1000)
x_plot_1 = np.linspace(mu_0-10, mu_1+10, 1000)
x_plot_2 = np.linspace(mu_2-10, mu_2+10, 1000)
x_plot_3 = np.linspace(mu_3-10, mu_3+10, 1000)
y_plot_0 = normal_pdf(mu_0,std_0)(x_plot_0)
y_plot_1 = normal_pdf(mu_1,std_1)(x_plot_1)
y_plot_2 = normal_pdf(mu_2,std_2)(x_plot_2)
y_plot_3 = normal_pdf(mu_3,std_3)(x_plot_3)
pu.plot_vs(plot_x=x_plot_0, plot_x2=x_plot_1, plot_f1=y_plot_0, plot_f2=y_plot_1, plot_x3=x_plot_2, plot_x4=x_plot_3,
plot_f3=y_plot_2, plot_f4=y_plot_3, f1label='X_0',f2label='X_1',f3label='X_2',f4label='X_3',
title=f"Courbe des distribution de probabilité sachant Y={y}",xlabel="X_k=x",ylabel=f"p(X_k=x|y={y})", filename=f"comp_normal_law_Y_{y}")
title=f"Courbe des distribution de probabilité sachant Y={y}",xlabel="X_k=x",ylabel=f"p(X_k=x|y={y})", filename=f"src/res/comp_normal_law_Y_{y}")



0 comments on commit 6db01ab

Please sign in to comment.