-
Notifications
You must be signed in to change notification settings - Fork 0
/
Lagrange.h
56 lines (47 loc) · 1.43 KB
/
Lagrange.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
/**
* \brief This is redefinition of the virtual class to implement Lagrange functions
* \class Lagrange
* This is how we can calculate the approximation of the data using Lagrange Polynome
*/
/**
* \class FFTreal
*
* \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 Lagrange.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 PCSC2017_GROUP5_LAGRANGE_H
#define PCSC2017_GROUP5_LAGRANGE_H
#include <iostream>
#include <vector>
#include <algorithm>
#include "readFile.h"
using namespace std;
///@class
class Lagrange{
public:
/**\brief Lagrange return directly the point corresponding to the argument xi
* \param data_x is a vector with the values read from the data.dat file
* \param data_y is a vector with the values read from the data.dat file, if we have only real entries then you have to
* specify a vector with the same size as real but filled with zeros.
* \param xi
*/
double solve(vector<double> const& data_x,vector<double> const& data_y,double xi);
private:
};
#endif //PCSC2017_GROUP5_LAGRANGE_H