% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/harbinger.R
\name{detect}
\alias{detect}
\title{Detect events in time series}
\usage{
detect(obj, ...)
}
\arguments{
\item{obj}{A \code{harbinger} detector object.}

\item{...}{Additional arguments passed to methods.}
}
\value{
A data frame with columns: \code{idx} (index), \code{event} (logical), and
\code{type} (character: "anomaly", "changepoint", or ""). Some detectors may
also attach attributes (e.g., \code{threshold}) or extra columns (e.g., \code{seq}, \code{seqlen}).
}
\description{
Generic S3 method for event detection using a fitted Harbinger model.
Concrete methods are implemented by each detector class.
}
\examples{
# See detector-specific examples in the package site for usage patterns
# and plotting helpers.
}
