Notes:
The above criterion is called the Perceptron Criterion.
The perceptron learning rule