source: Sophya/trunk/Poubelle/archTOI.old/toiinterpolator.h@ 315

Last change on this file since 315 was 315, checked in by ansari, 26 years ago

Archeops 24, gestion byte-swap

File size: 637 bytes
Line 
1#ifndef TOIINTERPOLATOR_H
2#define TOIINTERPOLATOR_H
3
4#include <deque>
5
6class TOIInterpolator {
7public:
8
9 void enterValue(double value, long sample);
10 bool needMoreDataFor(long sample); // need more data ? (for interp)
11 bool canGet(long sample); // enough info ?
12 double getIValue(long sample); // can forget before sample
13 double getEValue(long sample); // can forget before sample
14 long nextSample(long sampleMin); // the next true sample available
15
16protected:
17 struct pair {
18 pair(double v, long tt) : val(v), t(tt) {}
19 pair() {}
20 double val;
21 long t;
22 };
23
24 deque<pair> hist;
25};
26
27
28#endif
29
Note: See TracBrowser for help on using the repository browser.