islocaloptimum: islocaloptimum

View source: R/islocaloptimum.R

islocaloptimumR Documentation

islocaloptimum

Description

This function returns indices of local minimum and maximum points on a curve.

Usage

islocaloptimum(y)

Arguments

y

is a vector of y values.

Value

A vector in the same size of the vector 'y'. Local minimum and maximum arrays represented by -1 and +1, respectively.

Examples

data(chromatogramMatrix)
int <- chromatogramMatrix$smoothChromatogram
islocaloptimum(int)

IDSL.IPA documentation built on June 7, 2023, 6:01 p.m.