| Neural Network Toolbox | ![]() |
Positive linear transfer function
Graph and Symbol
Syntax
Description
poslin is a transfer function. Transfer functions calculate a layer's output from its net input.
N - S x Q matrix of net input (column) vectors.
and returns the maximum of 0 and each element of N.
poslin(code) returns useful information for each code string:
'deriv' - Name of derivative function.
'name' - Full name.
'output' - Output range.
'active' - Active input range.
Examples
Here is the code to create a plot of the poslin transfer function.
Network Use
To change a network so that a layer uses poslin, set net.layers{i}.transferFcn to 'poslin'.
Call sim to simulate the network with poslin.
Algorithm
The transfer function poslin returns the output n if n is greater than or equal to zero and 0 if n is less than or equal to zero.
poslin(n) = n, if n >= 0; = 0, if n <= 0.
See Also
| pnormc | postmnmx | ![]() |