17 Zeilen
Kein EOL
386 B
C
17 Zeilen
Kein EOL
386 B
C
#ifndef NEURONS_H
|
|
#define NEURONS_H
|
|
|
|
typedef struct neuron Neuron;
|
|
struct neuron
|
|
{
|
|
float *weights; //weights associated to the neuron + neuron's bias
|
|
float output; //output of the neuron
|
|
float delta_error; //the delta error for updating current weights
|
|
Neuron *same_layer_next_neuron;
|
|
};
|
|
|
|
Neuron *init_neuron(int n_weights);
|
|
void destroy_neuron(Neuron *neuron);
|
|
|
|
|
|
#endif |