expDecay: Exponential decay function

View source: R/pspaceDecay.R

expDecayR Documentation

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)

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.

Value

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

Author(s)

Mauro Castro.

See Also

weibullDecay, linearDecay

Examples

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


PathwaySpace documentation built on Aug. 8, 2025, 6:47 p.m.