find.tp: Identify turning points in a line

Description Usage Arguments Value Note References Examples

View source: R/HydRun_functions.R

Description

Identifies turning/inflection points in a line.

Usage

1

Arguments

X

The line being assessed for turning points.

Value

A data frame (format is 2 columns: index of turning points in X and labels for peaks (1) and valleys (0)).

Note

This is an R implementation of a function from the MATLAB toolbox HydRun.

References

Tang, W., & Carey, S. K. (2017). HydRun: a MATLAB toolbox for rainfall runoff analysis. Hydrological Processes, 31(15), 2670-2682.

Examples

1
turning_points <- find.tp(response)

codyalbertross/HydRun documentation built on Dec. 19, 2021, 5:21 p.m.