TP2 perceptron