Learn R Programming

PathwaySpace (version 0.99.4)

weibullDecay: Weibull decay function.

Description

The weibullDecay function is used by PathwaySpace's methods for signal convolution and projection.

Usage

weibullDecay(x, signal, decay = 0.999, shape = 1.05)

Value

A numeric vector.

Arguments

x

A numeric vector of distances (in [0,1]).

signal

A single numeric value representing a signal.

decay

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.

shape

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.

Author

Vinicius Chagas, Victor Apolonio, and Mauro Castro (mauro.castro@ufpr.br)

See Also

expDecay, linearDecay

Examples

Run this code
x <- c(1:100) / 100
y <- weibullDecay(x, 1)
plot(x, y)

Run the code above in your browser using DataLab