Learn R Programming

harbinger (version 1.2.727)

har_ensemble: Harbinger Ensemble

Description

Ensemble detector

Usage

har_ensemble(...)

Value

Harbinger object

Arguments

...

list of detectors

Examples

Run this code
library(daltoolbox)

#loading the example database
data(examples_anomalies)

#Using simple example
dataset <- examples_anomalies$simple
head(dataset)

# setting up time series emd detector
model <- har_ensemble(hanr_arima(), hanr_arima(), hanr_arima())
#model <- har_ensemble(hanr_fbiad(), hanr_arima(), hanr_emd())

# fitting the model
model <- fit(model, dataset$serie)

detection <- detect(model, dataset$serie)

# filtering detected events
print(detection[(detection$event),])

Run the code above in your browser using DataLab