Identity function

Share:

Description

Computes a trivial identity function. Used as the hidden layer transfer function for linear QRNN models.

Usage

1
linear(x)

Arguments

x

numeric vector.

See Also

linear.prime, sigmoid

Examples

1
2
x <- seq(-10, 10, length = 100)
plot(x, linear(x))