Fertig
Dependencies: mbed
Fork of RT2_P3_students by
Diff: LinearCharacteristics.h
- Revision:
- 7:72982ede2ff6
- Parent:
- 6:2cc56521aa16
- Child:
- 9:dc0eb7dd0d92
diff -r 2cc56521aa16 -r 72982ede2ff6 LinearCharacteristics.h --- a/LinearCharacteristics.h Tue Apr 10 11:44:36 2018 +0000 +++ b/LinearCharacteristics.h Tue Apr 17 09:06:47 2018 +0000 @@ -7,12 +7,19 @@ class LinearCharacteristics{ public: + LinearCharacteristics(float, float); + float evaluate(float); + float operator()(float x){ + return evaluate(x); + } //... virtual ~LinearCharacteristics(); // here: the calculation function private: // here: private functions and values... + float gain; + float offset; };