Neural Network Toolbox | ![]() ![]() |
Linear transfer derivative function
Syntax
Description
dpurelin is the derivative function for logsig
.
dpurelin(N,A)
takes two arguments,
N - S
x Q
net input.
A - S
x Q
output.
and returns the S
x Q
derivative dA_dN.
Examples
Here we define the net input N
for a layer of 3 purelin
neurons.
N = [0.1; 0.8; -0.7];
We calculate the layer's output A
with purelin
and then the derivative of A
with respect to N
.
A = purelin(N)
dA_dN = dpurelin(N,A)
Algorithm
The derivative of purelin
is calculated as follows:
D(i,q) = 1
See Also
![]() | dposlin | dradbas | ![]() |