Learn R Programming

spectralAnomaly (version 0.1.1)

saliency_map: Create saliency map

Description

Using the provided numeric input, typically a time series, calculate the spectral residual and output the saliency map for use in anomaly detection.

Usage

saliency_map(x, window = 3)

Value

Numeric vector representing the saliency map values.

Arguments

x

Numeric vector.

window

Positive integer value.

See Also

anomaly_score

Examples

Run this code
tmp <- ts(rnorm(12*6,10,2), start=c(2009, 1), end=c(2014, 12), frequency=12)
saliency_map(tmp)

Run the code above in your browser using DataLab