% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/eda-advanced.R
\name{detect_gazepoint_scr_events}
\alias{detect_gazepoint_scr_events}
\title{Detect SCR-like events in Gazepoint GSR/EDA data}
\usage{
detect_gazepoint_scr_events(
  data,
  phasic_col = NULL,
  signal_col = NULL,
  time_col = NULL,
  group_cols = NULL,
  threshold = NULL,
  min_peak_distance = 10L,
  window_size = 31L
)
}
\arguments{
\item{data}{A data frame.}

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

\item{signal_col}{Optional raw/conductance EDA column used when \code{phasic_col}
is not supplied.}

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

\item{group_cols}{Optional grouping columns.}

\item{threshold}{Optional numeric detection threshold. If \code{NULL}, a robust
group-specific threshold is estimated as median plus three MADs, bounded
below by zero.}

\item{min_peak_distance}{Minimum distance between retained peaks in samples.}

\item{window_size}{Rolling-median window size used if decomposition is needed.}
}
\value{
A list with \code{overview}, \code{events}, \code{group_summary}, and \code{settings}.
}
\description{
Detects simple SCR-like peaks from a phasic EDA signal. If a phasic column is
not supplied, the function first creates a descriptive phasic component using
\code{decompose_gazepoint_eda()}. This helper is intended for exploratory quality
control and descriptive summaries, not as a replacement for specialised SCR
detection pipelines.
}
\examples{
df <- data.frame(
  CNT = 1:20,
  GSR_US_PHASIC = c(rep(0, 5), 0.2, 0.8, 0.2, rep(0, 12))
)
detect_gazepoint_scr_events(df, phasic_col = "GSR_US_PHASIC", time_col = "CNT")

}
