fit_sigmoidal_drift: Fit a sigmoidal-drift model to one channel

View source: R/analyse_sigmoidal_drift.R

fit_sigmoidal_driftR Documentation

Fit a sigmoidal-drift model to one channel

Description

Channel fitter of analyse_sigmoidal_drift() (see analyse_kinetics_channels()). Self-starting SSsigmoidal_drift() of the channel shape via stats::nls() with algorithm = "port", seeded by sigdrift_start(), with the requested direction enforced on B - A and the sign of slope (enforce_direction()).

Usage

fit_sigmoidal_drift(x, t, valid, .a, ctx)

Arguments

x, t

Numeric vectors of the channel response and time elapsed from start_time.

valid

The find_kinetics_idx() result for the channel.

.a

The resolved argument list of the channel.

ctx

The channel context list of analyse_kinetics_channels().

Value

The coefs/model/fitted_data/diag list of build_fit_results(), or build_na_results() when the fit fails.


mnirs documentation built on Sept. 13, 2026, 1:06 a.m.