ChangePoints: Change Points of a 'numeric' vector

View source: R/RcppExports.R

ChangePointsR Documentation

Change Points of a numeric vector

Description

Finds changes points (i.e. corners) in the numeric vector.

Usage

ChangePoints(x)

Arguments

x

numeric vector.

Details

The end points of the vector will be always included in the results.

Value

The vector of index of change points.

Examples

x <- rwiener(100)
cid <- ChangePoints(x)
plot(x, type="l")
points(time(x)[cid], x[cid], cex=0.5, col=2, pch=19)

pvar documentation built on Oct. 18, 2022, 9:09 a.m.