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
Diff: LinearCharacteristics.h
- Revision:
- 0:15be70d21d7c
- Child:
- 2:252a61a7e8f9
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/LinearCharacteristics.h Wed Jan 10 16:08:07 2018 +0000
@@ -0,0 +1,19 @@
+class LinearCharacteristics{
+ public:
+ LinearCharacteristics(float k,float offset);
+ LinearCharacteristics(float k,float offset,float);
+ LinearCharacteristics(float k,float offset,float,float);
+ float operator()(float u){
+ return eval(u);
+ }
+ virtual ~LinearCharacteristics();
+ float eval(float);
+ operator float();
+
+ private:
+
+ float k;
+ float offset;
+ float lower_limit;
+ float upper_limit;
+};
\ No newline at end of file