Intelligent perceptron to tell if a point is above or below a line