print.anomaly_series: Print function for anomaly_series objects.

Description Usage Arguments Examples

View source: R/print.anomaly_series.R

Description

Prints the contents of an anomaly_series object as returned by the anomaly_series method.

Usage

1
2
## S3 method for class 'anomaly_series'
print(x, ...)

Arguments

x

An anomaly_series object

...

Other parameters to be passed to print methods.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
library(anomaly)
set.seed(2018)
# Generate data typically following a normal distribution with mean 0 and variance 1. 
# Then introduce 3 anomaly windows and 4 point outliers.
x  = rnorm(5000)
x[401:500]   = rnorm(100,4,1)
x[1601:1800] = rnorm(200,0,0.01)
x[3201:3500] = rnorm(300,0,10)
x[c(1000,2000,3000,4000)] = rnorm(4,0,100)
inferred_anomalies = anomaly_series(x)
print(inferred_anomalies)

anomaly documentation built on Sept. 21, 2018, 6:31 p.m.