Changeset 555 in Sophya for trunk/Poubelle/archTOI.old/toiinterpolator.h
- Timestamp:
- Nov 9, 1999, 3:04:05 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Poubelle/archTOI.old/toiinterpolator.h
r350 r555 1 1 // toiinterpolator.h 2 // Eric Aubourg CEA/DAPNIA/SPP juillet19992 // Eric Aubourg CEA/DAPNIA/SPP octobre 1999 3 3 4 4 … … 6 6 #define TOIINTERPOLATOR_H 7 7 8 #include <deque> 9 10 using namespace std; 8 #include "toipullproducer.h" 11 9 12 10 13 class TOIInterpolator {11 class TOIInterpolator : public TOIPullProducer { 14 12 public: 15 16 void enterValue(double value, long sample); 17 bool needMoreDataFor(long sample); // need more data ? (for interp) 18 bool canGet(long sample); // enough info ? 19 double getIValue(long sample); // can forget before sample 20 double getEValue(long sample); // can forget before sample 21 bool isNewValue(long sample); 22 long nextSample(long sampleMin); // the next true sample available 13 TOIInterpolator(); 14 virtual string getName(); 15 virtual double getValue(long sampleNum, TOI const& toi); 16 virtual bool canGetValue(long sampleNum, TOI const& toi); 17 virtual bool canGetValueLater(long sampleNum, TOI const& toi); 18 virtual bool canProduce(TOI const&); 23 19 24 20 protected: 25 struct pair { 26 pair(double v, long tt) : val(v), t(tt) {} 27 pair() {} 28 double val; 29 long t; 30 }; 31 32 deque<pair> hist; 21 virtual set<TOI> reqTOIFor(TOI const&); 22 void propagateLowBound(TOI const& toi, long sampleNum); 23 33 24 }; 34 25
Note:
See TracChangeset
for help on using the changeset viewer.