Learn R Programming

PathwaySpace (version 1.0.2)

weibullDecay: Weibull decay function

Description

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

Usage

weibullDecay(x, signal = 1, decay = 0.001, shape = 1.05)

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.

shape

A parameter (>=1) of a Weibull function. When shape=1 the Weibull decay follows an exponential decay. When shape>1 the function is first convex, then concave with an inflection point.

Author

Mauro Castro.

See Also

expDecay, linearDecay

Examples

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

Run the code above in your browser using DataLab