model_peak | R Documentation |
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))
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. |
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
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.