inst/otherMethods/PELT/doPelt.R

doPelt <- function(## Run Pelt segmentation,
                                    y,
### A numeric vector or one column matrix, the signal to be segmented
                                    ...
### Parameters for cpt.mean function
                                    ){
  cpt <- changepoint::cpt.mean(y, method="PELT")
  res <- list(bkp=cpt@cpts[-length(cpt@cpts)])
  return(res) 
}

Try the jointseg package in your browser

Any scripts or data that you put into this service are public.

jointseg documentation built on May 2, 2019, 5:20 p.m.