Lib_Misc
PolynomialCharacteristics.h
- Committer:
- altb
- Date:
- 2019-03-04
- Revision:
- 0:3312872854c4
File content as of revision 0:3312872854c4:
// Polynomial Characteristics for different purposes (map Voltage to acc etc.) #ifndef POLYNOMIALCHARACTERISTICS_H_ #define POLYNOMIALCHARACTERISTICS_H_ #include "mbed.h" class PolynomialCharacteristics{ public: PolynomialCharacteristics(float *, uint8_t, float, float); float evaluate(float); float operator()(float x){ return evaluate(x); } //... virtual ~PolynomialCharacteristics(); // here: the calculation function private: // here: private functions and values... float *P; float degree; float ulim; float llim; }; #endif // LINEAR_CHARACTERISTICS_H_