Neural networks : Introduction : Programming (2 of 7)

To simulate a neuron the following formulas are used:

The linear combiner

The linear combiner Assuming that neuron k is the one in question, the k's can be removed and it can be written as the following simple object-pascal code.
1
2
3
u := 0;
for j := 0 to m do
  u := u + w[j] * x[j];

The linear combiner can also be inserted as a function for itself.

Previous Next