Models a peaking pattern based on an input vector.

model_peak(input, dos = 100, pp = 0.5, ro = range(input))

model_trough(input, dos = 100, pp = 0.5, ro = range(input))

Arguments

input

Numeric vector of length greater than 5.

dos

Numeric value. Degree of smoothness. The higher the value the smoother the peak. The lower the value the sharper the peak. Should range between 1-100 (if <1 is multiplied with 100 to rescale).

pp

Numeric value. Peak position. Determines the position of the peak either as an index (>= 1) or as a percentage of length (<1).

ro

Numeric vector of length two. The range of the output vector. Defaults to the range of the input.

Value

Numeric vector of the same length and range as the input vector that contains a peaking pattern based on the adjustments of dos and pp.