| Neural Network Toolbox | ![]() |
Derivative of triangular basis transfer function
Syntax
Description
dtribas is the derivative function for tribas.
dtribas(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 tribas neurons.
N = [0.1; 0.8; -0.7];
We calculate the layer's output A with tribas and then the derivative of A with respect to N.
A = tribas(N) dA_dN = dtribas(N,A)
Algorithm
The derivative of tribas is calculated as follows:
d = 1, if -1 <= n < 0; -1, if 0 < n <= 1; 0, otherwise.
See Also
| dtansig | errsurf | ![]() |