Skip to content
Snippets Groups Projects
ConnectionFunctionGeneral.h 1.21 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
    
    #include <functional>
    
    Michal Kravcenko's avatar
    Michal Kravcenko committed
        std::vector<double> * weight_array = nullptr;
    
    
        /**
         *
         */
        int* param_indices = nullptr;
    
    
        /**
         *
         */
        int n_params = 0;
    
    public:
    
        /**
         *
         */
        ConnectionWeight();
    
        /**
         *
         * @param param_count
         * @param f
         */
    
        ConnectionWeight(int param_count, std::vector<double>* w_array);
    
        void SetParamIndex(int value, int idx);
    
        void SetParamIndices(int* param_ptr);
    
    David Vojtek's avatar
    David Vojtek committed
        /**
         *
         * @return vector of weights
         */
        std::vector<double> get_weights();
    
        /**
         *
         * @param values
         */
        void adjust_weights(double *values);
    
    };
    
    
    #endif //INC_4NEURO_CONNECTIONWEIGHT_H