calc_MU_firing_responses_fftvals: Calculate the values of the FFT of the firing responses of...

View source: R/calc_MU_firing_responses.r

calc_MU_firing_responses_fftvalsR Documentation

Calculate the values of the FFT of the firing responses of all MUs at all electrodes

Description

This is just a wrapper that calls calc_MU_firing_response_fftvals for all MU-electrode pairs.

Usage

calc_MU_firing_responses_fftvals(
  MUs,
  TFs_MU_input_to_surf_potential,
  psi_trafo,
  sampling
)

Arguments

MUs

A data.frame containing a column 'MU.obj' containing MU objects and index columns 'MU' and 'muscle'.

TFs_MU_input_to_surf_potential

A data.frame containing the values of the transfer functions at frequencies sampling$freqs_to_calc in column 'TF', represented as vectors of complex values.

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.

Value

A data.frame containing index columns 'muscle', 'MU' and 'electrode' as well as a data column 'firing_response_fftvals' that contains vectors that store the FFT values of the firing response of the particular MU at the particular electrode.


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