-
Notifications
You must be signed in to change notification settings - Fork 0
/
LeastSquare.h
44 lines (37 loc) · 1.03 KB
/
LeastSquare.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
/**
* \class Polynomial
*
* \ingroup PackageName
* (Note, this needs exactly one \defgroup somewhere)
*
* \brief This is the function to call to perform the FFT of a given set of values but also to implement the data
* approximation by computing the fourier series coefficients.
*
* \file Polynomial.h
*
* \note Optional part of the project
*
* \author (last to touch it) $Author: DC & NL$
*
* \version $Revision: 1.0 $
*
* \date $Date: 2017.12.10 $
*
* Contact: [email protected] & [email protected]
*
*/
#ifndef PROJECT_POLYNOMIAL_H
#define PROJECT_POLYNOMIAL_H
#include <array>
using namespace std ;
///@class
class Polynomial {
public:
/** \brief solve the linear equation
* \param data is a vector with the values of approximate (x-axis)
* \param degree is the degree of the polynome
* \param data_y is a vector with the values of approximate (y-axis)
*/
vector<double> solve(vector<double> const& data,vector<double> const& data_y, size_t const& degree);
};
#endif //PROJECT_POLYNOMIAL_H