Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Fork of RT2_P3_students by
Diff: LinearCharacteristics.h
- Revision:
- 3:769ce5f06d3e
- Parent:
- 1:a30512c3ac73
- Child:
- 6:2cc56521aa16
--- a/LinearCharacteristics.h	Mon Apr 09 05:50:04 2018 +0000
+++ b/LinearCharacteristics.h	Mon Apr 09 08:01:29 2018 +0000
@@ -7,13 +7,21 @@
 
 class LinearCharacteristics{
      public:
-                    //...
+                LinearCharacteristics(float,float);
+                LinearCharacteristics(float,float,float,float);
+                float operator()(float u){
+                      return eval(u);
+                }
                     //...
-        virtual     ~LinearCharacteristics();
+                virtual     ~LinearCharacteristics();
+                float eval(float);
+        
         // here: the calculation function
     
     private:
         // here: private functions and values...
+        float gain;
+        float offset;
 };
 
 
    