Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F90938673
series.hh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Nov 6, 05:21
Size
527 B
Mime Type
text/x-c++
Expires
Fri, Nov 8, 05:21 (2 d)
Engine
blob
Format
Raw Data
Handle
22163542
Attached To
R7571 SP4E-TB-TL-FR
series.hh
View Options
#ifndef __SERIES_HH__
#define __SERIES_HH__
/* -------------------------------------------------------------------------- */
#include "main.hh"
#include <functional>
#include <ostream>
#include <cmath>
/* -------------------------------------------------------------------------- */
class Series {
public:
Series();
virtual double compute(UInt N);
virtual double getAnalyticPrediction();
protected:
std::function<Real(UInt)> func;
UInt current_term = 0;
double current_value = 0.;
};
#endif /* __SERIES_HH__ */
Event Timeline
Log In to Comment