% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/eda-advanced.R
\name{decompose_gazepoint_eda}
\alias{decompose_gazepoint_eda}
\title{Decompose Gazepoint GSR/EDA into tonic and phasic components}
\usage{
decompose_gazepoint_eda(
  data,
  signal_col = NULL,
  tonic_col = NULL,
  phasic_col = NULL,
  time_col = NULL,
  group_cols = NULL,
  window_size = 31L,
  output_prefix = "eda",
  overwrite = FALSE
)
}
\arguments{
\item{data}{A data frame.}

\item{signal_col}{Optional GSR/EDA signal column. If \code{NULL}, a likely
conductance-like column is detected.}

\item{tonic_col}{Optional existing tonic column.}

\item{phasic_col}{Optional existing phasic column.}

\item{time_col}{Optional time/order column.}

\item{group_cols}{Optional grouping columns.}

\item{window_size}{Rolling-median window size used when existing tonic/phasic
columns are not available. Even values are increased by one.}

\item{output_prefix}{Prefix for output columns.}

\item{overwrite}{Logical. Should existing output columns be overwritten?}
}
\value{
A data frame with added tonic, phasic, and method columns. Attributes
include \code{overview} and \code{settings}.
}
\description{
Creates descriptive tonic and phasic EDA columns from Gazepoint GSR/EDA data.
If vendor-provided tonic/phasic columns such as \code{GSR_US_TONIC} and
\code{GSR_US_PHASIC} are available, they are used by default. Otherwise, a simple
rolling-median tonic estimate is used and the phasic component is calculated
as signal minus tonic. This helper is intentionally conservative and does not
replace specialised biosignal-processing software.
}
\examples{
df <- data.frame(CNT = 1:10, GSR_US = seq(1, 2, length.out = 10))
out <- decompose_gazepoint_eda(df, signal_col = "GSR_US", window_size = 3)
names(out)

}
