Newer
Older

Michal Kravcenko
committed
/**
* 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
committed
class ConnectionWeight {
protected:
/**
*
*/
/**
*
*/
int* param_indices = nullptr;

Michal Kravcenko
committed
/**
*
*/
int n_params = 0;
public:
/**
*
*/
ConnectionWeight();
/**
*
* @param param_count
* @param f
*/
ConnectionWeight(int param_count, std::vector<double>* w_array);

Michal Kravcenko
committed
/**
*

Michal Kravcenko
committed
* @param idx
*/
void SetParamIndex(int value, int idx);

Michal Kravcenko
committed
/**
*
* @param param_ptr
*/
void SetParamIndices(int* param_ptr);

Michal Kravcenko
committed
/**
*
*/
virtual ~ConnectionWeight();

Michal Kravcenko
committed
/**
*
* @return
*/
virtual double eval();
/**
*
* @param values
*/

Michal Kravcenko
committed
void set_weights(double *values);
/**
*
* @return vector of weights
*/
std::vector<double> get_weights();