The weibullDecay
function is used by
PathwaySpace's methods for signal convolution and projection.
weibullDecay(x, signal, decay = 0.999, shape = 1.05)
A numeric vector.
A numeric vector of distances (in [0,1]).
A single numeric value representing a signal.
The rate (in [0,1]) at which the signal decays.
This term indicates how much the signal
decreases at a certain
distance in x
. At the distance defined by the pdist
term
(see circularProjection
), the signal's value will
correspond to the initial signal multiplied by 1 - decay
.
A parameter (>=1) of a Weibull function. When shape=1
the Weibull decay follows an exponential decay. When shape>1
the function is first convex, then concave with an inflection point.
Vinicius Chagas, Victor Apolonio, and Mauro Castro (mauro.castro@ufpr.br)
expDecay
, linearDecay
x <- c(1:100) / 100
y <- weibullDecay(x, 1)
plot(x, y)
Run the code above in your browser using DataLab