6 #include "neuralinput.h"
8 class Neuron
: public NeuralInput
14 unsigned int learningType
;
19 unsigned int correctCount
;
21 QVector
<NeuralInput
*> inputs
;
22 QHash
<NeuralInput
*, double> weights
;
25 static const unsigned int typeStandart
= 0;
27 static const unsigned int learningTypeStandart
= 0;
29 Neuron(unsigned int type
, double threshold
= 0);
31 void addInput(NeuralInput
*input
, double weight
);
32 void removeInput(NeuralInput
*input
);
38 void setCorrectValue(double value
);