.

Dependents:  

PolynomialCharacteristics.h

Committer:
altb
Date:
2019-02-25
Revision:
11:78e723ede0c6
Parent:
1:8725adf9efd0

File content as of revision 11:78e723ede0c6:

// 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_