cycle_calc | R Documentation |
A helper function for calculating the appropriate min-max cycles for a fixed
time window/frequency resolution for use with compute_tfr
. For some
analyses you may wish to keep a fixed frequency resolution across the range
being analysed, which requires using a fixed time window. compute_tfr
expects the minimum and maximum number of cycles to be supplied. Use this
function to calculate the equivalent number of cycles at each frequency.
cycle_calc(time_win, frex)
time_win |
Time window in seconds. |
frex |
Frequencies of interest. |
the number of cycles for each frequency of interest
compute_tfr
cycle_calc(.5, seq(3, 30, length.out = 10)) no_scale_tfr <- compute_tfr(demo_epochs, foi = c(3, 30), n_cycles = range(cycle_calc(0.5, seq(3, 30, length.out = 10))), n_freq = 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.