Find turning points

findTPIs(y)

Arguments

y

Numeric vector.

Value

A list object with start and end indices of turning points.