FunctionBase.h 428 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
/**
 * DESCRIPTION OF THE FILE
 *
 * @author Michal Kravčenko
 * @date 4.7.18 -
 */

#ifndef INC_4NEURO_FUNCTIONBASE_H
#define INC_4NEURO_FUNCTIONBASE_H


class FunctionBase {
public:

    FunctionBase();

    virtual ~FunctionBase();

    virtual double eval(double x) = 0;

    virtual FunctionBase* get_derivative() = 0;

protected:

    FunctionBase* derivative = nullptr;

private:
};


#endif //INC_4NEURO_FUNCTIONBASE_H