-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainMenu.java
More file actions
89 lines (69 loc) · 3.61 KB
/
MainMenu.java
File metadata and controls
89 lines (69 loc) · 3.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
package Menu;
import tests.ApprentissageSingleNeurone;
import tests.EntrainementDoubleNeurone;
import tests.PredictWav;
import tests.BatchTest;
import tests.AfficheurFFTConsole;
import tests.AfficheurFFTGraphique;
import tests.CourbeMSE;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
public class MainMenu {
public static void main(String[] args) {
SwingUtilities.invokeLater(() -> {
JFrame frame = new JFrame("Menu Principal");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setSize(400, 800);
frame.setLayout(new GridLayout(0, 1, 10, 10));
frame.add(new JLabel("=== MENU ===", SwingConstants.CENTER));
JButton btn1 = new JButton("1. Apprentissage + Test global (single neurone)");
btn1.addActionListener((ActionEvent e) -> ApprentissageSingleNeurone.main(null));
frame.add(btn1);
JButton btn2 = new JButton("2. Afficher FFT d'un fichier WAV (console)");
btn2.addActionListener((ActionEvent e) -> AfficheurFFTConsole.main(null));
frame.add(btn2);
JButton btn3 = new JButton("3. Visualiser FFT (fenêtre graphique)");
btn3.addActionListener((ActionEvent e) -> AfficheurFFTGraphique.main(null));
frame.add(btn3);
JButton btn4 = new JButton("4. Prédire un fichier WAV (chat ou chien)");
btn4.addActionListener((ActionEvent e) -> PredictWav.main(null));
frame.add(btn4);
JButton btn5 = new JButton("5. Afficher la courbe d'évolution du MSE (fenêtre)");
btn5.addActionListener((ActionEvent e) -> CourbeMSE.main(null));
frame.add(btn5);
JButton btn6 = new JButton("6. Entraîner ET tester en Double Neurone");
btn6.addActionListener((ActionEvent e) -> EntrainementDoubleNeurone.main(null));
frame.add(btn6);
JButton btn7 = new JButton("7. Batch Test");
btn7.addActionListener((ActionEvent e) -> BatchTest.main(null));
frame.add(btn7);
JButton btn8 = new JButton("8. Expériences FFT (rapport)");
btn8.addActionListener((ActionEvent e) -> tests.FFTExperimentsReport.main(null));
frame.add(btn8);
JButton btn9 = new JButton("9. FFT Variation");
btn9.addActionListener((ActionEvent e) -> tests.FFTVariation.main(null));
frame.add(btn9);
JButton btn10 = new JButton("10. Plage de fréquences FFT");
btn10.addActionListener((ActionEvent e) -> tests.FrequencyRange.main(null));
frame.add(btn10);
JButton btn11 = new JButton("11. Robustesse bruit");
btn11.addActionListener((ActionEvent e) -> tests.NoiseRobustness.main(null));
frame.add(btn11);
JButton btn12 = new JButton("12. Test logique");
btn12.addActionListener((ActionEvent e) -> tests.LogicTest.main(null));
frame.add(btn12);
JButton btn13 = new JButton("13. Test Réseau (multi-couches)");
btn13.addActionListener((ActionEvent e) -> tests.testReseau.main(null));
frame.add(btn13);
JButton btn14 = new JButton("14. FFT Interactive");
btn14.addActionListener((ActionEvent e) -> tests.AfficheurFFTInteractif.main(null));
frame.add(btn14);
JButton btnQuit = new JButton("0. Quitter");
btnQuit.addActionListener((ActionEvent e) -> System.exit(0));
frame.add(btnQuit);
frame.setLocationRelativeTo(null);
frame.setVisible(true);
});
}
}