Learn R Programming

qrnn (version 2.0.1)

linear: Identity function

Description

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

Usage

linear(x)

Arguments

x

numeric vector.

See Also

linear.prime, sigmoid

Examples

Run this code
# NOT RUN {
x <- seq(-10, 10, length=100)
plot(x, linear(x))
# }

Run the code above in your browser using DataLab