V1
V2
Desired
Learning rate

V1
V2
Out

Sample implementation of Perceptron with dennco engine. See: http://en.wikipedia.org/wiki/Perceptron for the detail information about Perceptron.