Shikhargupta/Spiking-Neural-Network

Why this value is choosen for x and y range of interpolation. freq = interp(pot[l][m], [-1.069,2.781], [1,20]) Is there any particular reason ?

nethajiak opened this issue · 1 comments

      #calculating firing rate proportional to the membrane potential
        freq = interp(pot[l][m], [-1.069,2.781], [1,20])
        #print(l,m,pot[l][m], freq)
        # print freq

Could anyone please elaborate more about the spike_train.py and recep_field.py code. I could not get it properly .

I think he just chose these two numbers to set the frequency in a specific range. You can plot the function to see the range visually. I've done a few experiments myself and in fact, you can modify the numbers as long as they are still meaningful.