% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/eda-intervals-and-kleckner.R
\name{flag_kleckner_eda_artifacts}
\alias{flag_kleckner_eda_artifacts}
\title{Flag EDA artifacts using transparent Kleckner-style heuristics}
\usage{
flag_kleckner_eda_artifacts(
  dat,
  eda_col = "GSR_US",
  time_col = NULL,
  group_cols = NULL,
  min_us = 0.01,
  max_us = 100,
  max_abs_percent_change_per_second = 20,
  transition_padding = 1,
  output_prefix = "kleckner"
)
}
\arguments{
\item{dat}{A data frame containing EDA data.}

\item{eda_col}{Conductance column in microsiemens.}

\item{time_col}{Optional time column.}

\item{group_cols}{Optional grouping columns.}

\item{min_us}{Minimum plausible conductance.}

\item{max_us}{Maximum plausible conductance.}

\item{max_abs_percent_change_per_second}{Maximum absolute percent change per
second before flagging.}

\item{transition_padding}{Number of neighbouring rows to flag around bad
samples within each group.}

\item{output_prefix}{Prefix for output columns.}
}
\value{
A data frame with artifact flag columns and summary attributes.
}
\description{
Applies simple transparent EDA artifact flags: non-finite values,
physiological range violations, rapid percent change per second, and
transitional padding around flagged samples.
}
\details{
This helper is Kleckner-style rather than a claim of exact reproduction of
every rule in a specific external implementation.
}
