add Double support for NeuronFunction