|
Public Member Functions |
| Neuron (int numInputs) throw (std::bad_alloc) |
| Neuron (const Neuron &neuron) throw (std::bad_alloc) |
Neuron & | operator= (const Neuron &neuron) throw (std::bad_alloc) |
void | SetNumInputs (int num) |
int | GetNumInputs () const |
void | SetActivationFunc (ACTIVATION_FUNC activ_func) |
void | SetDerivActivationFunc (DERIV_ACTIVATION_FUNC deriv) |
void | SetWeight (int indx, double weight) |
void | SetWeights (const std::vector< double > &weights) |
double | GetWeight (int indx) const |
void | GetWeights (std::vector< double > &weights) const |
double * | GetWeights () |
double | GetOutput (const std::vector< double > &inputs, const int *indices) |
double | GetOutput (const std::vector< double > &inputs, const int *indices, double &net_input) |
double | GetOutput (const double *inputs, const int *indices) |
double | GetOutput (const double *inputs, const int *indices, double &net_input) |
void | SetIndex (int i) |
int | GetIndex () const |
void | Clear () |
Public Attributes |
ACTIVATION_FUNC | pActivationFunc |
DERIV_ACTIVATION_FUNC | pDerivActivationFunc |