Learn R Programming

PathwaySpace (version 0.99.4)

linearDecay: A simple linear decay function.

Description

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

Usage

linearDecay(x, signal, ...)

Value

A numeric vector.

Arguments

x

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

signal

A single numeric value representing a signal.

...

Not used; argument implemented for call compatibility with weibullDecay and expDecay functions.

Author

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

See Also

weibullDecay, expDecay

Examples

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

Run the code above in your browser using DataLab