Learn R Programming

PathwaySpace (version 1.0.2)

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 = 1)

Value

A numeric vector; if missing 'x', it will return decay function.

Arguments

x

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

signal

A single numeric value representing a signal. weibullDecay and expDecay functions.

Author

Mauro Castro.

See Also

weibullDecay, expDecay

Examples

Run this code
x <- seq(0, 2, 0.01)
y <- linearDecay(x, signal = 1)
plot(x, y)

Run the code above in your browser using DataLab