% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cvxeda-tau-optimization.R
\name{optimize_gazepoint_cvxeda_tau}
\alias{optimize_gazepoint_cvxeda_tau}
\title{Optimise subject-specific cvxEDA slow time constant}
\usage{
optimize_gazepoint_cvxeda_tau(
  dat,
  eda_col = "GSR_US",
  time_col = "CNT",
  group_cols = NULL,
  tau0_grid = seq(2, 4, by = 0.25),
  tau1 = 0.7,
  sampling_rate = NULL,
  ridge_lambda = 0.01,
  max_irf_seconds = 20
)
}
\arguments{
\item{dat}{A data frame containing EDA data.}

\item{eda_col}{Numeric EDA/conductance column.}

\item{time_col}{Numeric time column.}

\item{group_cols}{Optional grouping columns, usually participant/session.}

\item{tau0_grid}{Candidate slow time constants.}

\item{tau1}{Fixed fast time constant.}

\item{sampling_rate}{Optional sampling rate in Hz. If \code{NULL}, estimated from
\code{time_col}.}

\item{ridge_lambda}{Small ridge penalty used in frequency-domain
deconvolution.}

\item{max_irf_seconds}{Maximum impulse-response duration.}
}
\value{
A list with \code{overview}, \code{best_tau}, \code{optimization_table}, and
\code{settings}.
}
\description{
Performs a dependency-light grid search over the slow Bateman impulse-response
time constant used in cvxEDA-style EDA decomposition workflows. The default
fast time constant is fixed at 0.7 seconds and the slow time constant is
searched between 2 and 4 seconds. This function does not run the original
cvxEDA optimisation; it provides a subject-specific tau-selection bridge for
downstream cvxEDA-style workflows.
}
