m(t)=m1(t)+m2(t) is the input to a "integrate and fire" neuron model.
Case 1:m1(t) and m2(t) are arrays of values.
Case 2: m1(t) and m2(t) are sinusoids
I need to get spikes at the O/P when the integral exceeds the set threshold say 1, and reset the integrator.