.
PolynomialCharacteristics.h
- Committer:
- altb
- Date:
- 2018-10-04
- Revision:
- 1:8725adf9efd0
File content as of revision 1:8725adf9efd0:
// 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_