linearDecay: A simple linear decay function

View source: R/pspaceDecay.R

linearDecayR Documentation

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)

Arguments

x

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

signal

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

Value

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

Author(s)

Mauro Castro.

See Also

weibullDecay, expDecay

Examples

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


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