-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsimulatedialog.h
More file actions
56 lines (38 loc) · 1.24 KB
/
simulatedialog.h
File metadata and controls
56 lines (38 loc) · 1.24 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
#ifndef SIMULATEDIALOG_H
#define SIMULATEDIALOG_H
#include "data.h"
#include <QVector>
#include <QDialog>
#include "calculations.h"
namespace Ui {
class SimulateDialog;
}
class SimulateDialog : public QDialog
{
Q_OBJECT
public:
explicit SimulateDialog(QWidget *parent = nullptr);
explicit SimulateDialog(QWidget *parent, QString mode);
~SimulateDialog();
QVector<Data*> dataSets_local;
QString mode;
int current_dataSet{};
void setup(QVector<Data *> &datasets, QString mode);
private slots:
void on_simulateButton_clicked();
void on_responce_s_valueChanged(double arg1);
void on_responce_I_valueChanged(double arg1);
void on_responce_L_valueChanged(double arg1);
void on_responce_start_valueChanged(double arg1);
void on_responce_end_valueChanged(double arg1);
void on_cancelButton_clicked();
private:
Ui::SimulateDialog *ui;
QDoubleValidator *v=new QDoubleValidator(0.001,99999,3,this);
void simulateGenerateData(QVector<double> &x, double noise);
void one_site_sim(QString mode);
void two_site_sim(QString mode);
void four_site_sim(QString mode);
void comp_sim(QString mode);
};
#endif // SIMULATEDIALOG_H