Learn R Programming

PathwaySpace (version 1.0.2)

expDecay: Exponential decay function

Description

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

Usage

expDecay(x, signal = 1, decay = 0.001)

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.

decay

A decay factor (in [0,1]). This term indicates how much the signal decreases as a function of distance in pathway space. For example, at a specific distance defined by the pdist parameter (see circularProjection), the signal intensity will be the initial signal multiplied by decay. the weibullDecay function.

Author

Mauro Castro.

See Also

weibullDecay, linearDecay

Examples

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

Run the code above in your browser using DataLab