Skip to content

Instantly share code, notes, and snippets.

@erzk
Created September 5, 2015 22:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save erzk/e58101e0604c0915ce56 to your computer and use it in GitHub Desktop.
Save erzk/e58101e0604c0915ce56 to your computer and use it in GitHub Desktop.
# run the anomaly detection
posixDate <- as.POSIXct(gbppln$Date)
gbppl_ad_df <- data.frame(posixDate, gbppln$Rate)
fx.ad <- AnomalyDetectionVec(gbppl_ad_df$gbppln.Rate,
max_anoms=0.05,
direction='both',
plot=TRUE,
period=30)
# plot the anomalies
fx.ad$plot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment