FunctionCosine.h 492 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 32 33 34
/**
 * DESCRIPTION OF THE FILE
 *
 * @author Michal Kravčenko
 * @date 4.7.18 -
 */

#ifndef INC_4NEURO_FUNCTIONCOSINE_H
#define INC_4NEURO_FUNCTIONCOSINE_H

#include <cmath>

#include "FunctionBase.h"

#include "FunctionSine.h"


class FunctionCosine: FunctionBase {
public:
    FunctionCosine(double period, double bias);

    double eval(double x);

    FunctionBase* get_derivative();

private:

    double period = 0.0;

    double bias = 0.0;
};


#endif //INC_4NEURO_FUNCTIONCOSINE_H