Learn R Programming

harbinger (version 1.2.747)

detect: Detect events in time series

Description

Generic S3 generic for event detection using a fitted Harbinger model. Concrete methods are implemented by each detector class.

Usage

detect(obj, ...)

Value

A data frame with columns: idx (index), event (logical), and type (character: "anomaly", "changepoint", or ""). Some detectors may also attach attributes (e.g., threshold) or columns (e.g., seq, seqlen).

Arguments

obj

A harbinger detector object.

...

Additional arguments passed to methods.

Examples

Run this code
# See detector-specific examples in the package site for usage patterns
# and plotting helpers.

Run the code above in your browser using DataLab