| hcp_cf_lr | R Documentation |
Change-point detection by modeling residual deviations with linear regression and applying a second-stage smoothing and thresholding, inspired by ChangeFinder doi:10.1109/TKDE.2006.1599387.
hcp_cf_lr(sw_size = 30)
sw_size |
Integer. Sliding window size for smoothing/statistics. |
hcp_cf_lr object.
library(daltoolbox)
# Load change-point example data
data(examples_changepoints)
# Use a simple example
dataset <- examples_changepoints$simple
head(dataset)
# Configure ChangeFinder-LR detector
model <- hcp_cf_lr()
# Fit the model
model <- fit(model, dataset$serie)
# Run detection
detection <- detect(model, dataset$serie)
# Show detected change points
print(detection[(detection$event),])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.