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_G4 by
Diff: LinearCharacteristics.cpp
- Revision:
- 10:85840c065e00
- Parent:
- 7:01a7363583b2
- Child:
- 12:e18fdd404660
diff -r 67ee46be0403 -r 85840c065e00 LinearCharacteristics.cpp
--- a/LinearCharacteristics.cpp Tue Apr 24 09:17:04 2018 +0000
+++ b/LinearCharacteristics.cpp Fri Apr 27 06:34:29 2018 +0000
@@ -2,20 +2,3 @@
using namespace std;
-LinearCharacteristics::LinearCharacteristics(float gain,float offset){ // standard lin characteristics
- this->gain = gain;
- this->offset = offset;
-}
-
-LinearCharacteristics::LinearCharacteristics(float xmin,float xmax, float ymin, float ymax){ // standard lin characteristics
- this->gain = (ymax - ymin)/(xmax - xmin);
- this->offset = xmax - ymax/this->gain;
-}
-
-LinearCharacteristics::~LinearCharacteristics() {}
-
-
-float LinearCharacteristics::evaluate(float x)
-{
-return this->gain*(x - this->offset);
- }
