pointwise implementation of sigmoid neuron