added Threshold option for EnergyNeuron