hcp_scp | R Documentation |
Change-point detection is related to event/trend change detection. Seminal change point detects change points based on deviations of linear regression models adjusted with and without a central observation in each sliding window <10.1145/312129.312190>.
hcp_scp(sw_size = 30)
sw_size |
Sliding window size |
hcp_scp
object
library(daltoolbox)
#loading the example database
data(examples_changepoints)
#Using simple example
dataset <- examples_changepoints$simple
head(dataset)
# setting up change point method
model <- hcp_scp()
# fitting the model
model <- fit(model, dataset$serie)
detection <- detect(model, dataset$serie)
# filtering detected events
print(detection[(detection$event),])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.