-
Notifications
You must be signed in to change notification settings - Fork 0
/
Graph.h
74 lines (62 loc) · 2.13 KB
/
Graph.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
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
/**
* \class Graph
*
* \ingroup PackageName
* (Note, this needs exactly one \defgroup somewhere)
*
* \brief This is class that enables us to plot the approximated data.
*
* \note Mandatory part of the project
*
* \author (last to touch it) $Author: DC & NL$
*
* \version $Revision: 1.0 $
*
* \date $Date: 2017.12.09 $
*
* Contact: [email protected] & [email protected]
*
*/
#ifndef PCSC2017_GROUP5_GRAPH_H
#define PCSC2017_GROUP5_GRAPH_H
#include "readFile.h"
using namespace std;
///@class
class Graph {
public:
/** \brief Constructor of the class graph
* \param data is a structure that contains the information about the X and Y axis
*/
explicit Graph(Data const& data);
/** \brief plots the graph for the least square regression
* \param degree is a positive integer that represents the degree of the fitted polynome
*/
void make_graph_least_square(size_t const& degree) const;
/** \brief plots the graph for the lagrange polynoma regression
*/
void make_graph_lagrange() const;
/** \brief Plots the graph for the least square regression
* \param degree is a positive integer that represents the degree of the fitted polynome
* \param intervalle is the intervall for the the leat square method
*/
void make_graph_piece_wise_least_squares(size_t const& degree, size_t const& intervalle) const;
/** \brief Plots the graph for the lagrange regression
* \param intervalle is the intervall for the the leat square method
*/
void make_graph_piece_wise_lagrange(size_t const& intervalle) const;
/** \brief Plots the graph for fourier approximation
* \param data_original is the data as it is in the file
*/
void make_graph_FFT(Data data_original);
/** \brief Create augmented x data set.
* \param no parameters
*/
vector<double> make_x_points() const;
/** \brief Create the plot with the library
* \param x and y which are the vector of values we want to plot.
*/
void make_graph(vector<double> const& x , vector<double> const& y) const;
private:
Data mData;
};
#endif //PCSC2017_GROUP5_GRAPH_H