View source: R/calc_MU_firing_responses.r
calc_MU_firing_response_fftvals | R Documentation |
Take information on the transfer function MU-electrode and information on the excitatory input signal fed into the MU and combine this to attain the firing response of the given MU at the given electrode.
calc_MU_firing_response_fftvals(MU_electrode_TF, MU_obj, psi_trafo, sampling)
MU_electrode_TF |
A complex vector containing the value of the transfer
function from MU to electrode at frequencies |
MU_obj |
A MU object. |
psi_trafo |
A function returning the values of the unitary Fourier transform of psi, given a vector of ordinary input frequencies. |
sampling |
A sampling object as created by setup_sampling. |
This does not involve calculating an FFT! Actually, it is just
1.Evaluate the Fourier transform of the excitatory input signal (given in analytical form) at the same frequencies at which the MU-electrode TF has been computed.
2.Multiply the complex conjugates of these values with the corresponding TF values.
3.Obtain the second half of the FFT by mirroring the result, exploiting the hermitianness of the FFT of a real signal (which we expect the resulting firing response to be).
A complex vector that stores the FFT values of the firing response of MU at electrode.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.