Simulation of neuron for ECE 4784