Neural Network Toolbox | ![]() ![]() |
Derivative of positive linear transfer function
Syntax
Description
dposlin
is the derivative function for poslin
.
dposlin
(N,A) takes two arguments, and returns the S
x Q
derivative dA/dN
.
Examples
Here we define the net input N for a layer of 3 poslin
neurons.
N = [0.1; 0.8; -0.7];
We calculate the layer's output A with poslin
and then the derivative of A with respect to N
.
A = poslin(N) dA_dN = dposlin(N,A)
Algorithm
The derivative of poslin
is calculated as follows:
d = 1, if 0 <= n; 0, Otherwise.
See Also
![]() | dotprod | dpurelin | ![]() |