find_extrema {LMD}R Documentation

Find Extreme Points

Description

Method for finding Extreme Points

Usage

find_extrema(signal, include_endpoints = TRUE)

Arguments

signal

Signal values (Numeric | vector)

include_endpoints

whether to include end points or not (Boolean)

Details

A local extrema is the point at which a maximum or minimum value of the function in some open interval containing the point is obtained.

Value

Indexes of all extrema values (including starting and ending points)

Author(s)

Shubhra Prakash, shubhraprakash279@gmail.com

Examples

signal=c( 0.841471 ,0.9092974,0.14112,-0.7568025,-0.9589243)
find_extrema(signal)

[Package LMD version 1.0.0 Index]