library(rulsif.ts)
knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

rulsif.ts

rulsif.ts implements relative unconstrained least squares importance fitting for the task of detecting change points in time series data. Below is a simple example of the use of this package.

series <- c(
    rnorm(50, mean = 0, sd = 0.3),
    rnorm(25, mean = 8, sd = 1),
    rnorm(75, mean = 3, sd = 0.6),
    rnorm(25, mean = 1, sd = 0.8),
    rnorm(100, mean = -5, sd = 1.5),
    rnorm(100, mean = -5, sd = 0.2),
    rnorm(50, mean = -2.5, sd = 0.4),
    rnorm(50, mean = 2, sd = 1.2)
)
d <- ts_detect(series, window_size = 3, step = 10, make_plot = TRUE)

Installation

You can install the the development version from GitHub with:

# install.packages("devtools")
devtools::install_github("connorbrubaker/rulsif.ts")

References



connorbrubaker/rulsif.ts documentation built on Dec. 19, 2021, 6:02 p.m.