Creating the heave-side (0 or 1) function for perceptron analysis.