Description Usage Arguments Details Value
FindSamplingInterval finds a stable interval for sampling current and voltage channel of an abf object.
1 2 3 4 5 6 7 8 | FindSamplingInterval(abf, epoch = NULL,
dac = GetWaveformEnabledDAC(abf),
current_channel = GetFirstCurrentChan(abf),
voltage_channel = GetFirstVoltageChan(abf),
target_interval_size = NULL, allowed_voltage_delta = NULL,
noisy_opt = FALSE, lp_freq = 75, lp_order = 1L)
FindAllSamplingInterval(abf_list, ...)
|
abf |
an abf object. |
epoch |
the epoch to search, defaults to first multi-step epoch. |
dac |
the dac channel to evaluate waveform. |
current_channel |
channel id for current data, channel id is 1-based. |
voltage_channel |
channel id for voltage data, channel id is 1-based. |
target_interval_size |
OPTIONAL, target size in **points** of the sampling interval. Default is 2x lowpass window. |
allowed_voltage_delta |
OPTIONAL, allowed max deviation of voltage. |
noisy_opt |
enable optimisation for noisy data by applying a Butterworth lowpass filter to current channel. |
lp_freq |
frequency of low-pass filter. |
lp_order |
order of low-pass filter. |
This function finds a proper sampling interval to perform further calculations in a multi-step TEVC abf object. The waveform epochs should be aligned, i.e. epoch duration incr is 0. The function finds a proper sampling interval by:
1. Calling CmpWaveform() to find stable VOLTAGE channel, thus minimizing SEM along V axis.
2. Performing a binary search on CURRENT channel to find the most stable interval.
3. Applying a time-dependent penalty function to make the algorithm prefer intervals that are closer to the end of the epoch.
a named vector of 3 numeric: interval start position, end position, length
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.