Learn R Programming

PathwaySpace (version 0.99.4)

expDecay: Exponential decay function.

Description

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

Usage

expDecay(x, signal, decay = 0.999, ...)

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.

...

Not used; argument implemented for call compatibility with the weibullDecay function.

Author

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

See Also

weibullDecay, linearDecay

Examples

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

Run the code above in your browser using DataLab