teethfun: Teeth function

Description Usage Arguments Value References Examples

View source: R/utility.R

Description

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

Usage

1
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

1
2
3
4
5
# create teeth function
u <- teethfun(100, 6)

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

FDRSeg documentation built on May 2, 2019, 9:43 a.m.