Neural networks : Introduction : Programming (5 of 7)

The next many lines are merely visual components that serves no practical purpose. The tLabel components neuronOutput (the big zero on the program image) and digits (the many zeroes on the program image), however, gives the user info about the neurons output and the neurons input respectively.

The checkBoxClick method is called whenever the user presses one of the checkboxes. It has the purpose of updating the neuron and the form. updateNeuron (this is by far the most important method) updates, or recalculates, the neuron and last and least updateBin updates the digits label. The neurons inputs are, as the weights, an 8-double array. Unlike the weights, the inputs are declared in the var part of the source-code and can be altered by the user.

Previous Next