* upgraded euler to euler-maruyama
[quplot.git] / quplot.h
blobd589d51b88a0dc18ff64dd4148839a18652e2bb0
1 #ifndef QUPLOT_H
2 #define QUPLOT_H
4 #include <QtGui/QMainWindow>
5 #include <QMap>
6 #include <QMessageBox>
7 #include <QVariant>
8 #include <QDebug>
10 class QAction;
11 class QMenu;
12 class QTextEdit;
13 class QCheckbox;
14 class QLabel;
15 class QLineEdit;
16 class QPushButton;
18 namespace Ui
20 class QuPlot;
23 class QuPlot : public QMainWindow
25 Q_OBJECT
27 public:
28 QuPlot(QWidget *parent = 0);
29 ~QuPlot();
31 QMap<int, double> valuesMap;
32 /* valuesMap containes the following values at index
33 * Index Value
34 * 0 = amount of independent functions to solve
35 * 1 = holds the function, 1: damped harmonic osz. \w ext. force,
36 * 2: simple damped harmonic osz., 3: simple harmonic osz. \wo damping
37 * = 4: rotating dimer \w external force
38 * 2 = holds value of a
39 * 3 = holds value of A
40 * 4 = holds value of F
41 * 5 = holds value of l
42 * 6 = holds value of w
43 * 7 = holds values of t[0] = time
44 * 8 = holds values of x[0] = offset
45 * 9 = holds value of t[1] = unused
46 * 10 = holds value of x[1] = velocity
47 * 11 = mode, 0 = standard, 1 = converge, 2 = bifurcation
48 * 12 = is random ic?
49 * 13 = step size
50 * 14 = # of steps
51 * 15 = ic ? : from
52 * 16 = ic ? : to
53 * 17 = bifurcate from eta
54 * 18 = bifurcate to eta
55 * 19 = eta stepsize
56 * 20 = unused
57 * 21 = unused
58 * 22 = from t
59 * 23 = offy
60 * 24 = veloy
61 * 25 = eta1
62 * 26 = eta2
63 * 27 = phi0
64 * 28 = is random?
65 * 29 = is euler?
66 * 30 = searchmode
67 * 31 = threshold
68 * 32 = temperature
69 * 33 = unused
70 * 34 = unused
71 * 35 = no. of samples
72 * 36 = filter
73 * 37 = fromr2
74 * 38 = tor2
75 * 39 = stepr2
76 * 40 = theta
77 * 41 = psi
78 * 42 = U - amplitude of potential
81 QString str1;
82 QString str2;
84 bool ruk;
85 bool eul;
87 private slots:
88 void setDimension();
89 void about();
90 void on_calcButton_clicked();
91 void on_actionAbout_triggered();
92 void on_actionQuit_triggered();
93 void on_actionDimension_triggered();
95 private:
96 Ui::QuPlot *ui;
98 QDialog *dimDialog;
102 #endif // QUPLOT_H