Skip to content
Snippets Groups Projects
ConnectionFunctionConstant.h 962 B
Newer Older
  • Learn to ignore specific revisions
  • /**
     * DESCRIPTION OF THE FILE
     *
     * @author Michal Kravčenko
     * @date 15.3.19 -
     */
    
    #ifndef LIB4NEURO_CONNECTIONFUNCTIONCONSTANT_H
    #define LIB4NEURO_CONNECTIONFUNCTIONCONSTANT_H
    
    #include "../settings.h"
    #include "ConnectionFunctionGeneral.h"
    
    
    Martin Beseda's avatar
    Martin Beseda committed
    class ConnectionFunctionConstant : public ConnectionFunctionGeneral {
    
        /**
         * Struct used to access private properties from
         * the serialization function
         */
        struct access;
    
        LIB4NEURO_API ConnectionFunctionConstant(double w = 1);
    
    
        LIB4NEURO_API ~ConnectionFunctionConstant();
    
    
    Martin Beseda's avatar
    Martin Beseda committed
        LIB4NEURO_API double eval(std::vector<double>& parameter_space) override;
    
    Martin Beseda's avatar
    Martin Beseda committed
        LIB4NEURO_API void eval_partial_derivative(std::vector<double>& parameter_space,
                                                   std::vector<double>& weight_gradient,
                                                   double alpha) override;
    
    
    };
    
    
    #endif //LIB4NEURO_CONNECTIONFUNCTIONCONSTANT_H