added logistic encoder for spikes