-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathExperiment.h
44 lines (34 loc) · 938 Bytes
/
Experiment.h
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
#ifndef __EXPERIMENT_H
#define __EXPERIMENT_H
#include <QVector>
#include <QtGui>
#include <QSqlDatabase>
#include <QSqlQuery>
#include <QTime>
#include "Test.h"
#include "FittsWidget.h"
class QString;
class Experiment : public QWidget {
Q_OBJECT
public:
Experiment(FittsWidget * fw, QSqlDatabase db);
QVector<Test> tests;
void addTestTrial(ExperimentSettings settings);
void addTrainingTrial(ExperimentSettings settings);
double calculateX(double D, double W);
public slots:
void run();
void registerClick(QPoint p, int t, bool h);
private:
int numberOfTrainingRounds;
int experimentNumber;
int volunteerId;
QSqlQuery query;
QString name;
FittsWidget * widget;
QSqlDatabase db;
double aVal, bVal, coeff;
void calculateValues();
double timeCalc(double D, double W);
};
#endif