FeatMaxAmplitude: FeatMaxAmplitude

Description Usage Arguments Details Value

View source: R/single_peak_features.R

Description

Subtracts a constant value to a vector and return the maximum value of the difference.

Usage

1
FeatMaxAmplitude(y, basal = min(y))

Arguments

y

a numerical vector

basal

value to be subtracted for the signal to obtain height of the peak as amplitude instead of absolute value

Details

Interest over FetDiffMinMax, is that min(y) might be an outlier, or not really at the base of the peak. If basal = min(y); the result is strictly equivalent to FeatDiffMinMax.

Value

list of 2: "max": maximum value of y after subtracting basal from it; "time.max": index at which $max is reached.


majpark21/TSexploreR documentation built on Oct. 16, 2019, 2:46 p.m.