OSFEG-C++  1.4.6
OpenSF Error Generation Library
Sampled.h
1 /*
2  * openSF Error Generation Libraries (OSFEG)
3  * Deimos Space, S.L.U.
4  *
5  * This file is part of OSFEG. OSFEG is free software; you can redistribute it
6  * and/or modify it under the terms of the 'ESA Software Community Licence Permissive' as
7  * published by the European Space Agency; either version 2.4 of the License,
8  * or (at your option) any later version. You should have received a
9  * copy of the 'ESA Software Community Licence Permissive - v2.4' along with this program
10  * or one can be found at <http://eop-cfi.esa.int/index.php/docs-and-mission-data/licensing-documents>.
11  *
12  */
13 
14 #ifndef SAMPLED_H_
15 #define SAMPLED_H_
16 
17 #include "Analytical.h"
18 #include <vector>
19 
29 class Sampled : public Analytical
30 {
31 private:
39  double getLinear(double time);
40 
49  double getPolynomial(double time);
50 
57  double getSpline(double time);
58 
65  void setSpline(double time);
66 protected:
67  vector<double> A;
68  vector<double> B;
69  vector<double> C;
70 public:
71 
79  double getValue(double time);
80 
85 
91  Sampled(string type);
92 };
93 
94 #endif /* SAMPLED_H_ */
Definition: Analytical.h:30
string type
Type of value (currently only "Float")
Definition: Analytical.h:33
Definition: Sampled.h:30
double getValue(double time)
vector< double > A
Pre-computed data for the spline-based interpolation (3rd order coefficients)
Definition: Sampled.h:67
Sampled(string type)
vector< double > B
Pre-computed data for the spline-based interpolation (2nd order coefficients)
Definition: Sampled.h:68
vector< double > C
Pre-computed data for the spline-based interpolation (1st order coefficients)
Definition: Sampled.h:69