Creat the teeth function with specified lengths and number of change-points.
teethfun(n, K, h = 3)
length of the vector (values of the teeth function)
number of change-points
height of the jump
A numeric vector gives values of the teeth function.
Fryzlewicz, P. (2014). Wild binary segmentation for multiple change-point detection. Ann. Statist., 42(6): 2243--1572.
# NOT RUN { # create teeth function u <- teethfun(100, 6) # plot plot(u, type = "s") # }
Run the code above in your browser using DataCamp Workspace