| 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.
and returns the maximum of 0 and each element of N.
poslin(code) returns useful information for each code string:
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 | ![]() |
© 1994-2005 The MathWorks, Inc.