| Neural Network Toolbox | |
| Provide feedback about this page |
Graph and Symbol
Syntax
Description
hardlim is a neural transfer function. Transfer functions calculate a layer's output from its net input.
hardlim(N,FP) takes N and optional function parameters,
N |
S x Q matrix of net input (column) vectors |
FP |
Struct of function parameters (ignored) |
and returns A, the S x Q Boolean matrix with 1's where N
0.
hardlim('dn',N,A,FP) returns the S x Q derivative of A with respect to N. If A or FP is not supplied or is set to [], FP reverts to the default parameters, and A is calculated from N.
hardlim('name') returns the name of this function.
hardlim('output',FP) returns the [min max] output range.
hardlim('active',FP) returns the [min max] active input range.
hardlim('fullderiv') returns 1 or 0, depending on whether dA_dN is S x S x Q or S x Q.
hardlim('fpnames') returns the names of the function parameters.
hardlim('fpdefaults') returns the default function parameters.
Examples
Here is how to create a plot of the hardlim transfer function.
Assign this transfer function to layer i of a network.
Algorithm
See Also
| Provide feedback about this page |
![]() | gridtop | hardlims | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |