d-dimensional perceptron