calc_MU_firing_response_fftvals: Calculate the values of the FFT of the firing response of a...

View source: R/calc_MU_firing_responses.r

calc_MU_firing_response_fftvalsR Documentation

Calculate the values of the FFT of the firing response of a MU at an electrode

Description

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.

Usage

calc_MU_firing_response_fftvals(MU_electrode_TF, MU_obj, psi_trafo, sampling)

Arguments

MU_electrode_TF

A complex vector containing the value of the transfer function from MU to electrode at frequencies sampling$freqs_to_calc

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.

Details

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).

Value

A complex vector that stores the FFT values of the firing response of MU at electrode.


ime-luebeck/semgsim documentation built on April 14, 2022, 11:02 p.m.