FDRSeg (version 1.0-2)

teethfun: Teeth function

Description

Creat the teeth function with specified lengths and number of change-points.

Usage

teethfun(n, K, h = 3)

Arguments

n

length of the vector (values of the teeth function)

K

number of change-points

h

height of the jump

Value

A numeric vector gives values of the teeth function.

References

Fryzlewicz, P. (2014). Wild binary segmentation for multiple change-point detection. Ann. Statist., 42(6): 2243--1572.

Examples

Run this code
# NOT RUN {
# create teeth function
u <- teethfun(100, 6)

# plot 
plot(u, type = "s")
# }

Run the code above in your browser using DataCamp Workspace