-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgraphhandler.h
31 lines (24 loc) · 893 Bytes
/
graphhandler.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
#ifndef GRAPHHANDLER_H
#define GRAPHHANDLER_H
#include "graph.h"
#include "lfmsettings.h"
#include <QTabWidget>
class GraphHandler : public QTabWidget
{
Q_OBJECT
private:
Graph* lfm_time_graph;
Graph* lfm_frequency_graph;
// s(t)
void fill_points_time_domain(QVector<QPointF>& points, double period, double sampling_frequency,double carrier_frequency, double deviation);
// DFT s(t) -> s(w)
void fill_points_frequency_domain(QVector<QPointF>& points_container, const QVector<QPointF>& time_domain_points, double boundary);
double calculate_imaginary_part(const QVector<QPointF>& time_domain_points, int k);
double calculate_real_part(const QVector<QPointF>& time_domain_points, int k);
public:
GraphHandler(QWidget *parent = nullptr);
~GraphHandler() = default;
public slots:
void reset(LFMSettings settings);
};
#endif // GRAPHHANDLER_H