localExtrema-GPR-method: Local extrema

localExtrema,GPR-methodR Documentation

Local extrema

Description

Returns the local extrema (either values or binary)

Usage

## S4 method for signature 'GPR'
localExtrema(x, threshold, values = TRUE)

Arguments

x

An object of the class GPR.

threshold

[numeric(1)] Threshold value for local extremum detection. The larger the value, the longer the computation time.

If

values = TRUE, a GPR data with the local extrema (maxima and minima) is returned. If values = FALSE, a binary GPR data with 1 for local extremum (else 0) is returned.

Value

GPR data of extremum values

Examples

x <- frenkeLine00
z <- localExtrema(x)
plot(z)


emanuelhuber/RGPR documentation built on May 13, 2024, 9:31 p.m.