Skip to content
Snippets Groups Projects
ConnectionFunctionGeneral.h 1.41 KiB
Newer Older
  • Learn to ignore specific revisions
  • /**
     * DESCRIPTION OF THE FILE
     *
     * @author Michal Kravčenko
     * @date 14.6.18 -
     */
    
    #ifndef INC_4NEURO_CONNECTIONWEIGHT_H
    #define INC_4NEURO_CONNECTIONWEIGHT_H
    
    
    Michal Kravcenko's avatar
    Michal Kravcenko committed
    class ConnectionFunctionGeneral {
    
        /**
         * Struct used to access private properties from
         * the serialization function
         */
        struct access;
    
    
    Martin Beseda's avatar
    Martin Beseda committed
        LIB4NEURO_API ConnectionFunctionGeneral(std::vector<size_t>& param_indices,
                                                std::string& function_string);
    
    Martin Beseda's avatar
    Martin Beseda committed
        LIB4NEURO_API virtual ~ConnectionFunctionGeneral();
    
    Martin Beseda's avatar
    Martin Beseda committed
        LIB4NEURO_API virtual double eval(std::vector<double>& parameter_space);
    
    Michal Kravcenko's avatar
    Michal Kravcenko committed
         * Performs partial derivative of this transfer function according to all parameters. Adds the values multiplied
         * by alpha to the corresponding gradient vector
    
    Martin Beseda's avatar
    Martin Beseda committed
        LIB4NEURO_API virtual void eval_partial_derivative(std::vector<double>& parameter_space,
                                                           std::vector<double>& weight_gradient,
                                                           double alpha);