inst/tests/test_anomaly.R

 
test_that("wrapper runs on example code", {
  values=rnorm(400)+c(rep(-0.5,400/2),rep(0.5,400/2))
  o=sumseg(values,max.breaks=1)
  plot(index(values),values)
  lines(o$data$index,o$data$fitted,col=2,lwd=4)
  print(o$breaks) 
}) 
davids99us/anomaly documentation built on May 15, 2019, 1:15 a.m.